Data Structures | Typedefs | Functions

ts::detail Namespace Reference

Data Structures

struct  IpMapBase
 Base template class for IP maps. More...
class  Ip4Node
 Node for IPv4 map. More...
class  Ip4Map
class  Ip6Node
 Node for IPv6 map. More...
class  Ip6Map
struct  Interval
 Interval class. More...
struct  RBNode
 A node in a red/black tree. More...

Typedefs

typedef Interval< in_addr_t,
in_addr_t > 
Ip4Span
typedef Interval< sockaddr_in6 > Ip6Span

Functions

int cmp (sockaddr_in6 const &lhs, sockaddr_in6 const &rhs)
bool operator< (sockaddr_in6 const &lhs, sockaddr_in6 const &rhs)
 Less than.
bool operator< (sockaddr_in6 const *lhs, sockaddr_in6 const &rhs)
bool operator< (sockaddr_in6 const &lhs, sockaddr_in6 const *rhs)
 Less than.
bool operator== (sockaddr_in6 const &lhs, sockaddr_in6 const *rhs)
 Equality.
bool operator== (sockaddr_in6 const *lhs, sockaddr_in6 const &rhs)
 Equality.
bool operator== (sockaddr_in6 const &lhs, sockaddr_in6 const &rhs)
 Equality.
bool operator<= (sockaddr_in6 const &lhs, sockaddr_in6 const *rhs)
 Less than or equal.
bool operator<= (sockaddr_in6 const &lhs, sockaddr_in6 const &rhs)
 Less than or equal.
bool operator>= (sockaddr_in6 const &lhs, sockaddr_in6 const &rhs)
 Greater than or equal.
bool operator>= (sockaddr_in6 const &lhs, sockaddr_in6 const *rhs)
 Greater than or equal.
bool operator> (sockaddr_in6 const &lhs, sockaddr_in6 const *rhs)
 Greater than.
bool operator== (RBNode *n, RBNode::Color c)
 Equality.
bool operator== (RBNode::Color c, RBNode *n)
 Equality.

Typedef Documentation

typedef Interval<in_addr_t, in_addr_t> ts::detail::Ip4Span

Definition at line 965 of file IpMap.cc.

typedef Interval<sockaddr_in6> ts::detail::Ip6Span

Definition at line 1094 of file IpMap.cc.


Function Documentation

int ts::detail::cmp ( sockaddr_in6 const &  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Definition at line 52 of file IpMap.cc.

References TS_IP6_SIZE.

Referenced by operator<(), operator<=(), operator==(), operator>(), and operator>=().

bool ts::detail::operator< ( sockaddr_in6 const &  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Less than.

Definition at line 57 of file IpMap.cc.

References cmp().

bool ts::detail::operator< ( sockaddr_in6 const &  lhs,
sockaddr_in6 const *  rhs 
) [inline]

Less than.

Definition at line 64 of file IpMap.cc.

References cmp().

bool ts::detail::operator< ( sockaddr_in6 const *  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Definition at line 60 of file IpMap.cc.

References cmp().

bool ts::detail::operator<= ( sockaddr_in6 const &  lhs,
sockaddr_in6 const *  rhs 
) [inline]

Less than or equal.

Definition at line 80 of file IpMap.cc.

References cmp().

bool ts::detail::operator<= ( sockaddr_in6 const &  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Less than or equal.

Definition at line 84 of file IpMap.cc.

References cmp().

bool ts::detail::operator== ( RBNode::Color  c,
RBNode *  n 
) [inline]

Equality.

Note:
If n is NULL it is treated as having the color BLACK.
Returns:
true if c and the color of n are the same.

Definition at line 109 of file IpMap.cc.

bool ts::detail::operator== ( RBNode *  n,
RBNode::Color  c 
) [inline]

Equality.

Note:
If n is NULL it is treated as having the color BLACK.
Returns:
true if c and the color of n are the same.

Definition at line 103 of file IpMap.cc.

References ts::detail::RBNode::getColor().

bool ts::detail::operator== ( sockaddr_in6 const &  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Equality.

Definition at line 76 of file IpMap.cc.

References cmp().

bool ts::detail::operator== ( sockaddr_in6 const &  lhs,
sockaddr_in6 const *  rhs 
) [inline]

Equality.

Definition at line 68 of file IpMap.cc.

References cmp().

bool ts::detail::operator== ( sockaddr_in6 const *  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Equality.

Definition at line 72 of file IpMap.cc.

References cmp().

bool ts::detail::operator> ( sockaddr_in6 const &  lhs,
sockaddr_in6 const *  rhs 
) [inline]

Greater than.

Definition at line 96 of file IpMap.cc.

References cmp().

bool ts::detail::operator>= ( sockaddr_in6 const &  lhs,
sockaddr_in6 const *  rhs 
) [inline]

Greater than or equal.

Definition at line 92 of file IpMap.cc.

References cmp().

bool ts::detail::operator>= ( sockaddr_in6 const &  lhs,
sockaddr_in6 const &  rhs 
) [inline]

Greater than or equal.

Definition at line 88 of file IpMap.cc.

References cmp().