#include <ipv6_address.h>
◆ const_iterator
◆ iterator
◆ IPv6Address() [1/3]
Tins::IPv6Address::IPv6Address |
( |
const char * | addr | ) |
|
Constructor from a text representation char*.
- Parameters
-
addr | The text representation from which to construct this object. |
◆ IPv6Address() [2/3]
Tins::IPv6Address::IPv6Address |
( |
const std::string & | addr | ) |
|
Constructor from a text representation std::string.
- Parameters
-
addr | The text representation from which to construct this object. |
◆ IPv6Address() [3/3]
Constructor from a buffer.
The ptr parameter must be at least address_size bytes long.
- Parameters
-
ptr | The buffer from which to construct this object. |
◆ begin() [1/2]
Returns an iterator to the beginning of this address.
◆ begin() [2/2]
Returns a const iterator to the beginning of this address.
◆ copy()
Helper function which copies the address into an output iterator.
This is the same as:
std::copy(begin(), end(), iter);
But since some PDUs return a IPv6Address by value, this function can be used to avoid temporaries.
- Parameters
-
iter | The output iterator in which to store this address. |
- Returns
- OutputIterator pointing to one-past the last position written.
◆ end() [1/2]
Returns an iterator to the one-past-the-end element of this address.
◆ end() [2/2]
Returns a const iterator to the one-past-the-end element of this address.
◆ from_prefix_length()
Constructs an IPv6 address from a prefix length.
- Parameters
-
prefix_length | The length of the prefix |
◆ is_local_unicast()
bool Tins::IPv6Address::is_local_unicast |
( |
| ) |
const |
Return true if this is a Link-Local unicast IPv6 address.
This method returns true if this address is in the address range fe80::/10, false otherwise
◆ is_loopback()
bool Tins::IPv6Address::is_loopback |
( |
| ) |
const |
Returns true if this is a loopback IPv6 address.
This method returns true if this address is the ::1/128 address, false otherwise.
◆ is_multicast()
bool Tins::IPv6Address::is_multicast |
( |
| ) |
const |
Returns true if this is a multicast IPv6 address.
This method returns true if this address is in the address range ff00::/8, false otherwise.
◆ operator!=()
Compares this address for inequality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether addresses are distinct.
◆ operator&()
Applies a mask to an address
◆ operator<()
Compares this address for less-than inequality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether this address is less-than rhs.
◆ operator<=()
Compares this address for less-than equality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether this address is equal or less-than rhs.
◆ operator==()
Compares this address for equality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether addresses are equal.
◆ operator>()
Compares this address for greater-than inequality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether this address is greater-than rhs.
◆ operator>=()
Compares this address for greater-than equality.
- Parameters
-
rhs | The address to be compared to. |
- Returns
- bool indicating whether this address is equal or greater-than rhs.
◆ operator|()
◆ operator~()
◆ size()
size_t Tins::IPv6Address::size |
( |
| ) |
const |
|
inline |
Returns the size of an IPv6 Address.
This returns the value of IPv6Address::address_size
◆ to_string()
string Tins::IPv6Address::to_string |
( |
| ) |
const |
Retrieve the string representation of this address.
- Returns
- std::string containing the representation of this address.
◆ operator<<
Writes this address in hex-notation to a std::ostream.
- Parameters
-
os | The stream in which to write the address. |
addr | The parameter to be written. |
- Returns
- std::ostream& pointing to the os parameter.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libtins-4.5/include/tins/ipv6_address.h
- /builddir/build/BUILD/libtins-4.5/src/ipv6_address.cpp