Lines Matching refs:IPPrefix
121 class IPPrefix; variable
172 friend class IPPrefix;
196 class IPPrefix {
198 static bool forString(const std::string& repr, IPPrefix* prefix);
199 static IPPrefix forString(const std::string& repr) { in forString()
200 IPPrefix prefix; in forString()
201 if (!forString(repr, &prefix)) return IPPrefix(); in forString()
205 IPPrefix() = default;
206 IPPrefix(const IPPrefix&) = default;
207 IPPrefix(IPPrefix&&) = default;
209 explicit IPPrefix(const IPAddress& ip) : mData(ip.mData) {} in IPPrefix() function
214 IPPrefix(const IPAddress& ip, int length);
216 IPPrefix& operator=(const IPPrefix&) = default;
217 IPPrefix& operator=(IPPrefix&&) = default;
228 friend std::ostream& operator<<(std::ostream& os, const IPPrefix& prefix) {
232 friend bool operator==(const IPPrefix& a, const IPPrefix& b) { return (a.mData == b.mData); }
233 friend bool operator!=(const IPPrefix& a, const IPPrefix& b) { return (a.mData != b.mData); }
234 friend bool operator<(const IPPrefix& a, const IPPrefix& b) { return (a.mData < b.mData); }
235 friend bool operator>(const IPPrefix& a, const IPPrefix& b) { return (b.mData < a.mData); }
236 friend bool operator<=(const IPPrefix& a, const IPPrefix& b) { return (a < b) || (a == b); }
237 friend bool operator>=(const IPPrefix& a, const IPPrefix& b) { return (b < a) || (a == b); }