MySQL 8.4.2
Source Code Documentation
net::ip::network_v4 Class Reference

#include <internet.h>

Public Member Functions

constexpr network_v4 () noexcept=default
 
constexpr network_v4 (const address_v4 &addr, int prefix_len)
 
constexpr network_v4 (const address_v4 &addr, const address_v4 &mask)
 
constexpr address_v4 address () const noexcept
 
constexpr int prefix_length () const noexcept
 
constexpr address_v4 netmask () const noexcept
 
constexpr address_v4 network () const noexcept
 
constexpr address_v4 broadcast () const noexcept
 
address_v4_range hosts () const noexcept
 
constexpr network_v4 canonical () const noexcept
 
constexpr bool is_host () const noexcept
 
constexpr bool is_subnet_of (const network_v4 &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 Attributes

address_v4 addr_ {}
 
int prefix_len_ {0}
 

Constructor & Destructor Documentation

◆ network_v4() [1/3]

constexpr net::ip::network_v4::network_v4 ( )
constexprdefaultnoexcept

◆ network_v4() [2/3]

constexpr net::ip::network_v4::network_v4 ( const address_v4 addr,
int  prefix_len 
)
inlineconstexpr

◆ network_v4() [3/3]

constexpr net::ip::network_v4::network_v4 ( const address_v4 addr,
const address_v4 mask 
)
inlineconstexpr

Member Function Documentation

◆ address()

constexpr address_v4 net::ip::network_v4::address ( ) const
inlineconstexprnoexcept

◆ broadcast()

constexpr address_v4 net::ip::network_v4::broadcast ( ) const
inlineconstexprnoexcept

◆ canonical()

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

◆ hosts()

address_v4_range net::ip::network_v4::hosts ( ) const
noexcept

◆ is_host()

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

◆ is_subnet_of()

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

◆ netmask()

constexpr address_v4 net::ip::network_v4::netmask ( ) const
inlineconstexprnoexcept

◆ network()

constexpr address_v4 net::ip::network_v4::network ( ) const
inlineconstexprnoexcept

◆ prefix_length()

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

◆ to_string()

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

Member Data Documentation

◆ addr_

address_v4 net::ip::network_v4::addr_ {}
private

◆ prefix_len_

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

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