Simple IPv6 Network Address structure. More...
#include <ip6address.h>
Public Types | |
typedef std::set< IP6Address > | Set |
typedef std::vector< IP6Address > | List |
typedef std::list< IP6Address > | Queue |
Public Member Functions | |
IP6Address () | |
Constructor. | |
IP6Address (const char *ipAddress) | |
Creates from IPv4 Address string. | |
IP6Address (const std::string &ipAddress) | |
Creates from IPv6 Address string. | |
IP6Address (const IP6Address &ipAddress) | |
Copy Constructor. | |
~IP6Address () | |
Destructor. | |
bool | SetAddress (const std::string &ipAddress) |
Sets the IP address string and octect data from an IP address string. | |
bool | SetAddress (const unsigned char a, const unsigned char b, const unsigned char c, const unsigned char d, const unsigned char e, const unsigned char f) |
Sets the IP address values "a.b.c.d". | |
IP6Address & | operator= (const IP6Address &ipAddress) |
Sets equal to. | |
IP6Address & | operator= (const std::string &ipAddress) |
Sets equal to. | |
bool | operator== (const IP6Address &ipAddress) const |
True if equal. | |
bool | operator!= (const IP6Address &ipAddress) const |
True if not equal. | |
bool | operator< (const IP6Address &ipAddress) const |
Compares the IP address for sorting. | |
bool | operator<= (const IP6Address &ipAddress) const |
Compares the IP address for sorting. | |
virtual void | Clear () |
Clears data. | |
Public Attributes | |
std::string | mString |
unsigned char | mData [6] |
Simple IPv6 Network Address structure.
Definition at line 54 of file ip6address.h.
typedef std::vector<IP6Address> CxUtils::IP6Address::List |
Definition at line 58 of file ip6address.h.
typedef std::list<IP6Address> CxUtils::IP6Address::Queue |
Definition at line 59 of file ip6address.h.
typedef std::set<IP6Address> CxUtils::IP6Address::Set |
Definition at line 57 of file ip6address.h.
IP6Address::IP6Address | ( | ) |
Constructor.
Definition at line 52 of file ip6address.cpp.
IP6Address::IP6Address | ( | const char * | ipAddress ) |
Creates from IPv4 Address string.
Definition at line 64 of file ip6address.cpp.
IP6Address::IP6Address | ( | const std::string & | ipAddress ) |
Creates from IPv6 Address string.
Definition at line 75 of file ip6address.cpp.
IP6Address::IP6Address | ( | const IP6Address & | ipAddress ) |
Copy Constructor.
Definition at line 86 of file ip6address.cpp.
IP6Address::~IP6Address | ( | ) |
Destructor.
Definition at line 98 of file ip6address.cpp.
void IP6Address::Clear | ( | ) | [virtual] |
bool IP6Address::operator!= | ( | const IP6Address & | ipAddress ) | const |
True if not equal.
Definition at line 236 of file ip6address.cpp.
bool IP6Address::operator< | ( | const IP6Address & | ipAddress ) | const |
Compares the IP address for sorting.
Definition at line 199 of file ip6address.cpp.
bool IP6Address::operator<= | ( | const IP6Address & | ipAddress ) | const |
Compares the IP address for sorting.
Definition at line 210 of file ip6address.cpp.
IP6Address & IP6Address::operator= | ( | const std::string & | ipAddress ) |
Sets equal to.
Definition at line 188 of file ip6address.cpp.
IP6Address & IP6Address::operator= | ( | const IP6Address & | ipAddress ) |
Sets equal to.
Definition at line 176 of file ip6address.cpp.
bool IP6Address::operator== | ( | const IP6Address & | ipAddress ) | const |
True if equal.
Definition at line 221 of file ip6address.cpp.
bool IP6Address::SetAddress | ( | const std::string & | ipAddress ) |
Sets the IP address string and octect data from an IP address string.
[in] | ipAddress | IP Address data "127.0.0.0.0.1", "1.1.132.170.190.86." |
Definition at line 113 of file ip6address.cpp.
bool IP6Address::SetAddress | ( | const unsigned char | a, |
const unsigned char | b, | ||
const unsigned char | c, | ||
const unsigned char | d, | ||
const unsigned char | e, | ||
const unsigned char | f | ||
) |
Sets the IP address values "a.b.c.d".
[in] | a | Part of IP address. |
[in] | b | Part of IP address. |
[in] | c | Part of IP address. |
[in] | d | Part of IP address. |
[in] | e | Part of IP address. |
[in] | f | Part of IP address. |
Definition at line 151 of file ip6address.cpp.
unsigned char CxUtils::IP6Address::mData[6] |
Definition at line 81 of file ip6address.h.
std::string CxUtils::IP6Address::mString |
Definition at line 80 of file ip6address.h.