MySQL 9.1.0
Source Code Documentation
net::ip::network_v6 Class Reference

#include <internet.h>

Public Member Functions

constexpr network_v6 () noexcept=default
 
constexpr network_v6 (const address_v6 &addr, int prefix_len)
 
constexpr address_v6 address () const noexcept
 
constexpr int prefix_length () const noexcept
 
constexpr address_v6 network () const noexcept
 
address_v6_range hosts () const noexcept
 
constexpr network_v6 canonical () const noexcept
 
constexpr bool is_host () const noexcept
 
constexpr bool is_subnet_of (const network_v6 &other) const noexcept
 
template<class Allocator = std::allocator<char>>
std::basic_string< char, std::char_traits< char >, Allocator > to_string (const Allocator &a=Allocator()) const
 

Private Member Functions

constexpr unsigned char networkbits (const address_v6::bytes_type &address_bytes, int prefix_len, int ndx) const
 
constexpr uint8_t leftmostbits (int ndx, int prefix_len) const
 

Private Attributes

address_v6 addr_ {}
 
int prefix_len_ {0}
 

Constructor & Destructor Documentation

◆ network_v6() [1/2]

constexpr net::ip::network_v6::network_v6 ( )
constexprdefaultnoexcept

◆ network_v6() [2/2]

constexpr net::ip::network_v6::network_v6 ( const address_v6 addr,
int  prefix_len 
)
inlineconstexpr

Member Function Documentation

◆ address()

constexpr address_v6 net::ip::network_v6::address ( ) const
inlineconstexprnoexcept

◆ canonical()

constexpr network_v6 net::ip::network_v6::canonical ( ) const
inlineconstexprnoexcept

◆ hosts()

address_v6_range net::ip::network_v6::hosts ( ) const
noexcept

◆ is_host()

constexpr bool net::ip::network_v6::is_host ( ) const
inlineconstexprnoexcept

◆ is_subnet_of()

constexpr bool net::ip::network_v6::is_subnet_of ( const network_v6 other) const
constexprnoexcept

◆ leftmostbits()

constexpr uint8_t net::ip::network_v6::leftmostbits ( int  ndx,
int  prefix_len 
) const
inlineconstexprprivate

◆ network()

constexpr address_v6 net::ip::network_v6::network ( ) const
inlineconstexprnoexcept

◆ networkbits()

constexpr unsigned char net::ip::network_v6::networkbits ( const address_v6::bytes_type address_bytes,
int  prefix_len,
int  ndx 
) const
inlineconstexprprivate

◆ prefix_length()

constexpr int net::ip::network_v6::prefix_length ( ) const
inlineconstexprnoexcept

◆ to_string()

template<class Allocator = std::allocator<char>>
std::basic_string< char, std::char_traits< char >, Allocator > net::ip::network_v6::to_string ( const Allocator &  a = Allocator()) const
inline

Member Data Documentation

◆ addr_

address_v6 net::ip::network_v6::addr_ {}
private

◆ prefix_len_

int net::ip::network_v6::prefix_len_ {0}
private

The documentation for this class was generated from the following file: