sella::net::IPPrefix Class Reference

List of all members.

Classes

struct  hash
struct  ptr_eq
struct  ptr_hash
struct  shared_eq
struct  shared_hash

Public Types

typedef std::shared_ptr< IPPrefixshared
typedef IPPrefixptr
typedef std::list< IPPrefixlist
typedef std::list< ptrptr_list
typedef std::list< shared > shared_list
typedef std::forward_list
< IPPrefix
flist
typedef std::forward_list< ptrptr_flist
typedef std::forward_list< shared > shared_flist
typedef std::vector< IPPrefixvector
typedef std::vector< ptrptr_vector
typedef std::vector< shared > shared_vector
typedef std::unordered_set
< IPPrefix, hash
uset
typedef std::unordered_set
< ptr, ptr_hash, ptr_eq
ptr_uset
typedef std::unordered_set
< shared, shared_hash,
shared_eq
shared_uset
typedef
std::unordered_multiset
< IPPrefix, hash
umset
typedef
std::unordered_multiset< ptr,
ptr_hash, ptr_eq
ptr_umset
typedef
std::unordered_multiset
< shared, shared_hash,
shared_eq
shared_umset

Public Member Functions

 IPPrefix (const IPAddress &address, uint8_t cidr) throw (AddressException)
 IPPrefix (const std::string &address, uint8_t cidr) throw (AddressException)
 IPPrefix (const std::string &prefix=std::string("0.0.0.0/32")) throw (AddressException)
 IPPrefix (const IPPrefix &other) throw ()
 IPPrefix (const IPPrefix &&other) throw ()
IPPrefixoperator= (const IPPrefix &other) throw ()
IPPrefixoperator= (const IPPrefix &&other) throw ()
bool operator== (const IPPrefix &other) const throw ()
bool operator!= (const IPPrefix &other) const throw ()
bool operator>= (const IPPrefix &other) const throw ()
bool operator<= (const IPPrefix &other) const throw ()
bool operator< (const IPPrefix &other) const throw ()
bool operator> (const IPPrefix &other) const throw ()
bool operator<< (const IPPrefix &other) const throw ()
bool operator<<= (const IPPrefix &other) const throw ()
bool operator>> (const IPPrefix &other) const throw ()
bool operator>>= (const IPPrefix &other) const throw ()
bool operator<< (const IPAddress &other) const throw ()
bool operator<<= (const IPAddress &other) const throw ()
bool operator>> (const IPAddress &other) const throw ()
bool operator>>= (const IPAddress &other) const throw ()
bool contains (const IPPrefix &other, bool orEquals=false) const throw ()
bool contains (const IPAddress &other, bool orEquals=false) const throw ()
int getFamily (void) const throw ()
const IPAddressgetIPAddress (void) const throw ()
uint8_t getCIDR (void) const throw ()
IPAddress getNetmask (void) const throw ()
IPAddress getInverseMask (void) const throw ()
IPAddress getNetwork (void) const throw ()
IPAddress::vector getIPAddresses (bool usable=true) const throw ()
const std::string & str (void) const throw (AddressException)
const char * c_str (void) const throw (AddressException)
uint32_t getU32 (void) const throw ()
uint32_t getHash (void) const throw ()
bool empty (void) const throw ()
void clear (void) throw ()

Static Public Member Functions

static const IPPrefix::shared shared_ptr (const IPAddress &address, uint8_t cidr) throw (AddressException)
static const IPPrefix::shared shared_ptr (const std::string &address, uint8_t cidr) throw (AddressException)
static const IPPrefix::shared shared_ptr (const std::string &prefix=std::string("0.0.0.0/32")) throw (AddressException)
static bool shared_bi_cmp (shared &a, shared &b)
static bool shared_bi_eq (shared &a, shared &b)

Detailed Description

Definition at line 31 of file IPPrefix.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables

Generated on 20 Nov 2014 for libutil++ by  doxygen 1.6.1