ipaddress 1.1.0
|
Represents the base class for IPv4 address manipulation. More...
#include <ipv4-address.hpp>
Public Types | |
using | base_type = typename base_v4<ipv4_address_base>::base_type |
The base type for the IPv4 address. | |
using | uint_type = typename base_v4<ipv4_address_base>::uint_type |
The unsigned integer type for the IPv4 address. | |
Public Member Functions | |
constexpr inline uint_type | to_uint () const noexcept |
Converts the IPv4 address to an unsigned integer. | |
constexpr inline const base_type & | bytes () const noexcept |
Provides access to the underlying bytes of the IPv4 address. | |
constexpr inline ip_version | version () const noexcept |
Retrieves the IP version of the address. | |
constexpr inline size_t | size () const noexcept |
Retrieves the size of the IPv4 address. | |
Static Public Member Functions | |
template<uint_type Ip> | |
static constexpr inline ip_address_base< ipv4_address_base > | from_uint () noexcept |
Creates an IPv4 address from an unsigned integer using a template parameter. | |
static constexpr inline ip_address_base< ipv4_address_base > | from_uint (uint_type ip) noexcept |
Creates an IPv4 address from an unsigned integer. | |
Represents the base class for IPv4 address manipulation.
This class provides the basic functionalities required for handling IPv4 addresses, including conversion to and from numeric representations, access to the underlying bytes, and utility functions that are common across different representations of IPv4 addresses.
|
inlinestaticnoexcept |
Creates an IPv4 address from an unsigned integer using a template parameter.
Ip | The unsigned integer representing the IPv4 address. |
|
inlinestaticnoexcept |
Creates an IPv4 address from an unsigned integer.
[in] | ip | The unsigned integer representing the IPv4 address. |
|
inlinenoexcept |
Converts the IPv4 address to an unsigned integer.
|
inlinenoexcept |
Provides access to the underlying bytes of the IPv4 address.
|
inlinenoexceptinherited |
Retrieves the IP version of the address.
|
inlinenoexceptinherited |
Retrieves the size of the IPv4 address.