Lines Matching defs:operator
87 const EthAddr &operator=(const eth_addr &ea);
88 const EthAddr &operator=(const std::string &addr);
110 operator uint64_t() const
124 std::ostream &operator<<(std::ostream &stream, const EthAddr &ea);
125 bool operator==(const EthAddr &left, const EthAddr &right);
172 EthHdr *operator->() { return (EthHdr *)p->data; }
173 EthHdr &operator*() { return *(EthHdr *)p->data; }
174 operator EthHdr *() { return (EthHdr *)p->data; }
176 const EthHdr *operator->() const { return (const EthHdr *)p->data; }
177 const EthHdr &operator*() const { return *(const EthHdr *)p->data; }
178 operator const EthHdr *() const { return (const EthHdr *)p->data; }
180 const EthPtr &operator=(const EthPacketPtr &ptr) { p = ptr; return *this; }
184 bool operator!() const { return !p; }
185 operator bool() const { return (p != nullptr); }
209 std::ostream &operator<<(std::ostream &stream, const IpAddress &ia);
210 bool operator==(const IpAddress &left, const IpAddress &right);
229 std::ostream &operator<<(std::ostream &stream, const IpNetmask &in);
230 bool operator==(const IpNetmask &left, const IpNetmask &right);
249 std::ostream &operator<<(std::ostream &stream, const IpWithPort &iwp);
250 bool operator==(const IpWithPort &left, const IpWithPort &right);
311 IpHdr *operator->() { return get(); }
312 IpHdr &operator*() { return *get(); }
317 const IpHdr *operator->() const { return get(); }
318 const IpHdr &operator*() const { return *get(); }
320 const IpPtr &operator=(const EthPacketPtr &ptr) { set(ptr); return *this; }
321 const IpPtr &operator=(const EthPtr &ptr) { set(ptr.p); return *this; }
322 const IpPtr &operator=(const IpPtr &ptr) { p = ptr.p; return *this; }
326 bool operator!() const { return !p; }
327 operator bool() const { return (p != nullptr); }
424 Ip6Hdr *operator->() { return get(); }
425 Ip6Hdr &operator*() { return *get(); }
430 const Ip6Hdr *operator->() const { return get(); }
431 const Ip6Hdr &operator*() const { return *get(); }
433 const Ip6Ptr &operator=(const EthPacketPtr &ptr)
435 const Ip6Ptr &operator=(const EthPtr &ptr)
437 const Ip6Ptr &operator=(const Ip6Ptr &ptr)
442 bool operator!() const { return !p; }
443 operator bool() const { return (p != nullptr); }
564 TcpHdr *operator->() { return get(); }
565 TcpHdr &operator*() { return *get(); }
568 const TcpHdr *operator->() const { return get(); }
569 const TcpHdr &operator*() const { return *get(); }
571 const TcpPtr &operator=(const IpPtr &i)
573 const TcpPtr &operator=(const TcpPtr &t)
578 bool operator!() const { return !p; }
579 operator bool() const { return (p != nullptr); }
660 UdpHdr *operator->() { return get(); }
661 UdpHdr &operator*() { return *get(); }
664 const UdpHdr *operator->() const { return get(); }
665 const UdpHdr &operator*() const { return *get(); }
667 const UdpPtr &operator=(const IpPtr &i) { set(i); return *this; }
668 const UdpPtr &operator=(const UdpPtr &t)
673 bool operator!() const { return !p; }
674 operator bool() const { return (p != nullptr); }