HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UT_IpNetworkV4 Class Reference

#include <UT_IpAddress.h>

Public Types

using address_t = UT_IpAddressV4
 

Public Member Functions

 UT_IpNetworkV4 ()
 
 UT_IpNetworkV4 (const address_t &address, uint16 prefix_length)
 
 UT_IpNetworkV4 (const UT_IpNetworkV4 &net)
 
UT_IpNetworkV4operator= (const UT_IpNetworkV4 &other)
 
bool operator== (const UT_IpNetworkV4 &other) const
 
bool operator!= (const UT_IpNetworkV4 &other) const
 
SYS_NO_DISCARD_RESULT const
address_t
address () const
 
SYS_NO_DISCARD_RESULT address_t netmask () const
 
SYS_NO_DISCARD_RESULT address_t network () const
 
SYS_NO_DISCARD_RESULT
UT_IpNetworkV4 
canonical () const
 
SYS_NO_DISCARD_RESULT uint16_t prefixLength () const
 
SYS_NO_DISCARD_RESULT bool isHost () const
 
SYS_NO_DISCARD_RESULT bool isSubnetOf (const UT_IpNetworkV4 &other) const
 
SYS_NO_DISCARD_RESULT
UT_StringHolder 
toString () const
 

Static Public Member Functions

static SYS_NO_DISCARD_RESULT
UT_IpNetworkV4 
fromString (const UT_StringRef &str)
 
static SYS_NO_DISCARD_RESULT
UT_IpNetworkV4 
loopback ()
 

Static Public Attributes

static constexpr uint32_t host_address_len = 32
 

Detailed Description

Definition at line 385 of file UT_IpAddress.h.

Member Typedef Documentation

Definition at line 388 of file UT_IpAddress.h.

Constructor & Destructor Documentation

UT_IpNetworkV4::UT_IpNetworkV4 ( )
inline

Definition at line 391 of file UT_IpAddress.h.

UT_IpNetworkV4::UT_IpNetworkV4 ( const address_t address,
uint16  prefix_length 
)
inline

Definition at line 395 of file UT_IpAddress.h.

UT_IpNetworkV4::UT_IpNetworkV4 ( const UT_IpNetworkV4 net)
inline

Definition at line 400 of file UT_IpAddress.h.

Member Function Documentation

SYS_NO_DISCARD_RESULT const address_t& UT_IpNetworkV4::address ( ) const
inline

Definition at line 421 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_IpNetworkV4 UT_IpNetworkV4::canonical ( ) const
inline

Definition at line 430 of file UT_IpAddress.h.

static SYS_NO_DISCARD_RESULT UT_IpNetworkV4 UT_IpNetworkV4::fromString ( const UT_StringRef str)
static
SYS_NO_DISCARD_RESULT bool UT_IpNetworkV4::isHost ( ) const
inline

Definition at line 435 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpNetworkV4::isSubnetOf ( const UT_IpNetworkV4 other) const
static SYS_NO_DISCARD_RESULT UT_IpNetworkV4 UT_IpNetworkV4::loopback ( )
inlinestatic

Definition at line 443 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT address_t UT_IpNetworkV4::netmask ( ) const
SYS_NO_DISCARD_RESULT address_t UT_IpNetworkV4::network ( ) const
inline

Definition at line 426 of file UT_IpAddress.h.

bool UT_IpNetworkV4::operator!= ( const UT_IpNetworkV4 other) const
inline

Definition at line 415 of file UT_IpAddress.h.

UT_IpNetworkV4& UT_IpNetworkV4::operator= ( const UT_IpNetworkV4 other)
inline

Definition at line 404 of file UT_IpAddress.h.

bool UT_IpNetworkV4::operator== ( const UT_IpNetworkV4 other) const
inline

Definition at line 410 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT uint16_t UT_IpNetworkV4::prefixLength ( ) const
inline

Definition at line 434 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_StringHolder UT_IpNetworkV4::toString ( ) const
inline

Definition at line 437 of file UT_IpAddress.h.

Member Data Documentation

constexpr uint32_t UT_IpNetworkV4::host_address_len = 32
static

Definition at line 389 of file UT_IpAddress.h.


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