Lines Matching refs:IPPrefix
111 class IPPrefix; variable
162 friend class IPPrefix;
186 class IPPrefix {
190 IPPrefix() = default;
191 IPPrefix(const IPPrefix&) = default;
192 IPPrefix(IPPrefix&&) = default;
194 explicit IPPrefix(const IPAddress& ip) : mData(ip.mData) {} in IPPrefix() function
199 IPPrefix(const IPAddress& ip, int length);
201 IPPrefix& operator=(const IPPrefix&) = default;
202 IPPrefix& operator=(IPPrefix&&) = default;
213 friend std::ostream& operator<<(std::ostream& os, const IPPrefix& prefix) {
217 friend bool operator==(const IPPrefix& a, const IPPrefix& b) { return (a.mData == b.mData); }
218 friend bool operator!=(const IPPrefix& a, const IPPrefix& b) { return (a.mData != b.mData); }
219 friend bool operator<(const IPPrefix& a, const IPPrefix& b) { return (a.mData < b.mData); }
220 friend bool operator>(const IPPrefix& a, const IPPrefix& b) { return (b.mData < a.mData); }
221 friend bool operator<=(const IPPrefix& a, const IPPrefix& b) { return (a < b) || (a == b); }
222 friend bool operator>=(const IPPrefix& a, const IPPrefix& b) { return (b < a) || (a == b); }