libcaf
0.16.3
|
Base type for addresses based on a byte representation such as IP or Ethernet addresses. More...
#include <byte_address.hpp>
Inherits comparable< Derived >.
Public Member Functions | |
uint8_t & | operator[] (size_t index) noexcept |
Returns the byte at given index. | |
const uint8_t & | operator[] (size_t index) const noexcept |
Returns the byte at given index. | |
size_t | size () const noexcept |
Returns the number of bytes of the address. | |
int | compare (const Derived &other) const noexcept |
Returns a negative number if *this < other , zero if *this == other and a positive number if *this > other . More... | |
Derived | network_address (size_t prefix_length) const noexcept |
Derived & | operator &= (const Derived &other) |
Bitwise ANDs *this and other . | |
Derived & | operator|= (const Derived &other) |
Bitwise ORs *this and other . | |
Derived & | operator^= (const Derived &other) |
Bitwise XORs *this and other . | |
Friends | |
Derived | operator & (const Derived &x, const Derived &y) |
Derived | operator| (const Derived &x, const Derived &y) |
Derived | operator^ (const Derived &x, const Derived &y) |
Base type for addresses based on a byte representation such as IP or Ethernet addresses.
|
noexcept |
Returns a negative number if *this < other
, zero if *this == other
and a positive number if *this > other
.