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

This represents a Ipv4 address. More...

#include <UT_IpAddress.h>

Public Types

using bytes_t = UT_FixedArray< uint8, 4 >
 

Public Member Functions

 UT_IpAddressV4 ()
 
 UT_IpAddressV4 (uint32_t addr)
 
 UT_IpAddressV4 (const bytes_t &addr)
 
 UT_IpAddressV4 (unsigned char i0, unsigned char i1, unsigned char i2, unsigned char i3)
 
 UT_IpAddressV4 (const UT_IpAddressV4 &addr)
 
UT_IpAddressV4operator= (const UT_IpAddressV4 &addr)
 
bool operator== (const UT_IpAddressV4 &other) const
 
bool operator!= (const UT_IpAddressV4 &other) const
 
bool operator< (const UT_IpAddressV4 &other) const
 
bool operator> (const UT_IpAddressV4 &other) const
 
bool operator<= (const UT_IpAddressV4 &other) const
 
bool operator>= (const UT_IpAddressV4 &other) const
 
SYS_NO_DISCARD_RESULT bool isUnspecified () const
 
SYS_NO_DISCARD_RESULT bool isLoopback () const
 
SYS_NO_DISCARD_RESULT bool isMulticast () const
 
SYS_NO_DISCARD_RESULT const bytes_t toBytes () const
 
SYS_NO_DISCARD_RESULT uint32_t toUInt () const
 
SYS_NO_DISCARD_RESULT
UT_StringHolder 
toString () const
 

Static Public Member Functions

static SYS_NO_DISCARD_RESULT
UT_IpAddressV4 
fromString (const UT_StringRef &str)
 
static SYS_NO_DISCARD_RESULT
UT_IpAddressV4 
any ()
 
static SYS_NO_DISCARD_RESULT
UT_IpAddressV4 
loopback ()
 
static SYS_NO_DISCARD_RESULT
UT_IpAddressV4 
broadcast ()
 
static SYS_NO_DISCARD_RESULT
uint32_t 
networkToHost (uint32_t v)
 
static SYS_NO_DISCARD_RESULT
uint32_t 
hostToNetwork (uint32_t v)
 

Detailed Description

This represents a Ipv4 address.

Definition at line 34 of file UT_IpAddress.h.

Member Typedef Documentation

Definition at line 37 of file UT_IpAddress.h.

Constructor & Destructor Documentation

UT_IpAddressV4::UT_IpAddressV4 ( )
inline

Definition at line 39 of file UT_IpAddress.h.

UT_IpAddressV4::UT_IpAddressV4 ( uint32_t  addr)
inlineexplicit

Definition at line 41 of file UT_IpAddress.h.

UT_IpAddressV4::UT_IpAddressV4 ( const bytes_t addr)
inlineexplicit

Definition at line 42 of file UT_IpAddress.h.

UT_IpAddressV4::UT_IpAddressV4 ( unsigned char  i0,
unsigned char  i1,
unsigned char  i2,
unsigned char  i3 
)
inline

Definition at line 46 of file UT_IpAddress.h.

UT_IpAddressV4::UT_IpAddressV4 ( const UT_IpAddressV4 addr)
inline

Definition at line 54 of file UT_IpAddress.h.

Member Function Documentation

static SYS_NO_DISCARD_RESULT UT_IpAddressV4 UT_IpAddressV4::any ( )
inlinestatic

Definition at line 113 of file UT_IpAddress.h.

static SYS_NO_DISCARD_RESULT UT_IpAddressV4 UT_IpAddressV4::broadcast ( )
inlinestatic

Definition at line 121 of file UT_IpAddress.h.

static SYS_NO_DISCARD_RESULT UT_IpAddressV4 UT_IpAddressV4::fromString ( const UT_StringRef str)
static
static SYS_NO_DISCARD_RESULT uint32_t UT_IpAddressV4::hostToNetwork ( uint32_t  v)
static
SYS_NO_DISCARD_RESULT bool UT_IpAddressV4::isLoopback ( ) const
inline

Definition at line 92 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddressV4::isMulticast ( ) const
inline

Definition at line 96 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddressV4::isUnspecified ( ) const
inline

Definition at line 88 of file UT_IpAddress.h.

static SYS_NO_DISCARD_RESULT UT_IpAddressV4 UT_IpAddressV4::loopback ( )
inlinestatic

Definition at line 117 of file UT_IpAddress.h.

static SYS_NO_DISCARD_RESULT uint32_t UT_IpAddressV4::networkToHost ( uint32_t  v)
static
bool UT_IpAddressV4::operator!= ( const UT_IpAddressV4 other) const
inline

Definition at line 67 of file UT_IpAddress.h.

bool UT_IpAddressV4::operator< ( const UT_IpAddressV4 other) const
inline

Definition at line 71 of file UT_IpAddress.h.

bool UT_IpAddressV4::operator<= ( const UT_IpAddressV4 other) const
inline

Definition at line 79 of file UT_IpAddress.h.

UT_IpAddressV4& UT_IpAddressV4::operator= ( const UT_IpAddressV4 addr)
inline

Definition at line 57 of file UT_IpAddress.h.

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

Definition at line 63 of file UT_IpAddress.h.

bool UT_IpAddressV4::operator> ( const UT_IpAddressV4 other) const
inline

Definition at line 75 of file UT_IpAddress.h.

bool UT_IpAddressV4::operator>= ( const UT_IpAddressV4 other) const
inline

Definition at line 83 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT const bytes_t UT_IpAddressV4::toBytes ( ) const
inline

Definition at line 100 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_StringHolder UT_IpAddressV4::toString ( ) const
SYS_NO_DISCARD_RESULT uint32_t UT_IpAddressV4::toUInt ( ) const

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