Network Prefix (or net address). More...
#include <source/ariba/utility/transport/tcpip/protlib/address.h>
Inherits protlib::hostaddress.

Public Member Functions | |
| virtual netaddress * | new_instance () const |
| virtual netaddress * | copy () const |
| virtual bool | operator== (const address &ie) const |
| virtual void | convert_to_ipv6 () |
| convert to iPv6 | |
| virtual size_t | get_hash () const |
| hash function | |
| virtual int | match_against (const netaddress &na) const |
| match against IP address | |
| netaddress () | |
| constructor | |
| netaddress (const netaddress &na) | |
| copy constructor | |
| netaddress (const hostaddress &h, prefix_length_t len=128) | |
| constructor from hostaddress and prefix length | |
| netaddress (const char *str, bool *res=NULL) | |
| constructor from string | |
| netaddress (const char *str, prefix_length_t len, bool *res=NULL) | |
| constructor from string and prefix length | |
| netaddress & | operator= (const netaddress &na) |
| assignment | |
| netaddress & | operator= (const hostaddress &ha) |
| assignment | |
| prefix_length_t | set_pref_len (prefix_length_t len) |
| prefix_length_t | get_pref_len () const |
| bool | operator< (const netaddress &na) const |
| comparison for prefixmap | |
| int | rdx_cmp (const netaddress *na, int *pos) const |
Protected Member Functions | |
| virtual void | set_subtype (bool ipv4) |
| set subtype and IPv4 flag | |
Private Attributes | |
| prefix_length_t | prefix_length |
Network Prefix (or net address).
Holds an IP address and a prefix length in bits.
Definition at line 636 of file address.h.
| size_t protlib::netaddress::get_hash | ( | ) | const [inline, virtual] |
hash function
Reimplemented from protlib::hostaddress.
Definition at line 1363 of file address.h.
References protlib::hostaddress::get_hash(), and prefix_length.
Referenced by boost::hash< protlib::netaddress >::operator()().
| prefix_length_t protlib::netaddress::get_pref_len | ( | ) | const [inline] |
Definition at line 1360 of file address.h.
References prefix_length.
Referenced by protlib::AddressList::getifaddrs_is_local(), protlib::RadixTrie< propmap_t >::insert(), protlib::RadixTrie< propmap_t >::lookup_node(), protlib::hostaddress::match_against(), and protlib::operator<<().
| int protlib::netaddress::match_against | ( | const netaddress & | ha | ) | const [inline, virtual] |
match against IP address
Match this IP address against another IP address. Two IP addresses match if they are equal.
Reimplemented from protlib::hostaddress.
Definition at line 1369 of file address.h.
References prefix_length.
Definition at line 677 of file address.h.
Referenced by convert_to_ipv6(), get_hash(), get_pref_len(), match_against(), netaddress(), operator<(), operator=(), operator==(), rdx_cmp(), set_pref_len(), and set_subtype().
1.6.1