Node for IPv6 map. More...
Inherits IpMap::Node, and ts::detail::Interval< sockaddr_in6 >.
Public Types | |
typedef Ip6Node | self |
Self reference type. | |
typedef Metric const * | ArgType |
Override ArgType from Interval because the convention is to use a pointer, not a reference. | |
Public Member Functions | |
Ip6Node (ArgType min, ArgType max, void *data) | |
Construct from pointers. | |
Ip6Node (Metric const &min, Metric const &max, void *data) | |
Construct with values. | |
virtual sockaddr const * | min () const |
virtual sockaddr const * | max () const |
self & | setData (void *data) |
Set the client data. | |
Protected Member Functions | |
self & | setMin (ArgType min) |
Set the minimum value of the interval. | |
self & | setMin (Metric const &min) |
Set the minimum value of the interval. | |
self & | setMax (ArgType max) |
Set the maximum value of the interval. | |
self & | setMax (Metric const &max) |
Set the maximum value of the interval. | |
self & | setMaxMinusOne (Metric const &max) |
Set the maximum value to one less than max. | |
self & | setMinPlusOne (Metric const &min) |
Set the minimum value to one more than min. | |
self & | decrementMax () |
Decremement the maximum value in place. | |
self & | incrementMin () |
Increment the mininimum value in place. | |
Static Protected Member Functions | |
static void | inc (Metric &m) |
Increment a metric. | |
static void | dec (Metric &m) |
Decrement a metric. | |
static Metric const & | deref (ArgType addr) |
static ArgType | argue (Metric const &metric) |
Friends | |
struct | IpMapBase< Ip6Node > |
Node for IPv6 map.
Definition at line 1098 of file IpMap.cc.
typedef Metric const* ts::detail::Ip6Node::ArgType |
Override ArgType
from Interval
because the convention is to use a pointer, not a reference.
Reimplemented from ts::detail::Interval< T, A >.
typedef Ip6Node ts::detail::Ip6Node::self |
static void ts::detail::Ip6Node::dec | ( | Metric & | m | ) | [inline, static, protected] |
Decrement a metric.
m | Decremented in place. |
Definition at line 1214 of file IpMap.cc.
References TS_IP6_SIZE.
Referenced by decrementMax(), and setMaxMinusOne().
self& ts::detail::Ip6Node::decrementMax | ( | ) | [inline, protected] |
Decremement the maximum value in place.
Definition at line 1194 of file IpMap.cc.
References ts::detail::Interval< T, A >::_max, and dec().
static void ts::detail::Ip6Node::inc | ( | Metric & | m | ) | [inline, static, protected] |
Increment a metric.
m | Incremented in place. |
Definition at line 1201 of file IpMap.cc.
References TS_IP6_SIZE.
Referenced by incrementMin(), and setMinPlusOne().
self& ts::detail::Ip6Node::incrementMin | ( | ) | [inline, protected] |
Increment the mininimum value in place.
Definition at line 1198 of file IpMap.cc.
References ts::detail::Interval< T, A >::_min, and inc().
virtual sockaddr const* ts::detail::Ip6Node::max | ( | ) | const [inline, virtual] |
Definition at line 1125 of file IpMap.cc.
References ts::detail::Interval< T, A >::_max, and ats_ip_sa_cast().
virtual sockaddr const* ts::detail::Ip6Node::min | ( | ) | const [inline, virtual] |
Definition at line 1121 of file IpMap.cc.
References ts::detail::Interval< T, A >::_min, and ats_ip_sa_cast().
self& ts::detail::Ip6Node::setData | ( | void * | data | ) | [inline] |
Set the client data.
data | Client data. |
Definition at line 1129 of file IpMap.cc.
References IpMap::Node::_data.
Set the maximum value of the interval.
max | Maximum value (host order). |
Definition at line 1157 of file IpMap.cc.
References ts::detail::Interval< T, A >::_max, ats_ip_copy(), and ats_ip_sa_cast().
Referenced by setMax(), and setMaxMinusOne().
Set the maximum value to one less than max.
max | One more than maximum value. |
Definition at line 1174 of file IpMap.cc.
References ts::detail::Interval< T, A >::_max, dec(), and setMax().
Set the minimum value of the interval.
min | Minimum value (host order). |
Definition at line 1139 of file IpMap.cc.
References ts::detail::Interval< T, A >::_min, ats_ip_copy(), and ats_ip_sa_cast().
Referenced by setMin(), and setMinPlusOne().
Set the minimum value to one more than min.
min | One less than minimum value. |
Definition at line 1184 of file IpMap.cc.
References ts::detail::Interval< T, A >::_min, inc(), and setMin().