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

This represents either an Ipv4 address or an Ipv6 address. More...

#include <UT_IpAddress.h>

Public Member Functions

 UT_IpAddress ()
 
 UT_IpAddress (const UT_IpAddressV4::bytes_t &addr)
 
 UT_IpAddress (const UT_IpAddressV6::bytes_t &addr)
 
 UT_IpAddress (unsigned char i0, unsigned char i1, unsigned char i2, unsigned char i3)
 
 UT_IpAddress (const UT_IpAddress &ip)
 
 UT_IpAddress (const UT_IpAddressV4 &ip)
 
 UT_IpAddress (const UT_IpAddressV6 &ip)
 
bool operator== (const UT_IpAddress &other) const
 
bool operator!= (const UT_IpAddress &other) const
 
UT_IpAddressoperator= (const UT_IpAddress &ip)
 
UT_IpAddressoperator= (const UT_IpAddressV4 &ip)
 
UT_IpAddressoperator= (const UT_IpAddressV6 &ip)
 
SYS_NO_DISCARD_RESULT bool isV4 () const
 
SYS_NO_DISCARD_RESULT bool isV6 () const
 
SYS_NO_DISCARD_RESULT bool isUnspecified () const
 
SYS_NO_DISCARD_RESULT bool isLoopback () const
 
SYS_NO_DISCARD_RESULT
UT_StringHolder 
toString () const
 
SYS_NO_DISCARD_RESULT
UT_IpAddressV4 
toV4 () const
 
SYS_NO_DISCARD_RESULT
UT_IpAddressV6 
toV6 () const
 

Static Public Member Functions

static SYS_NO_DISCARD_RESULT
UT_IpAddress 
fromString (const UT_StringRef &str)
 

Detailed Description

This represents either an Ipv4 address or an Ipv6 address.

Definition at line 230 of file UT_IpAddress.h.

Constructor & Destructor Documentation

UT_IpAddress::UT_IpAddress ( )
inline

Definition at line 233 of file UT_IpAddress.h.

UT_IpAddress::UT_IpAddress ( const UT_IpAddressV4::bytes_t addr)
inline

Definition at line 238 of file UT_IpAddress.h.

UT_IpAddress::UT_IpAddress ( const UT_IpAddressV6::bytes_t addr)
inline

Definition at line 243 of file UT_IpAddress.h.

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

Definition at line 248 of file UT_IpAddress.h.

UT_IpAddress::UT_IpAddress ( const UT_IpAddress ip)
inline

Definition at line 257 of file UT_IpAddress.h.

UT_IpAddress::UT_IpAddress ( const UT_IpAddressV4 ip)
inline

Definition at line 268 of file UT_IpAddress.h.

UT_IpAddress::UT_IpAddress ( const UT_IpAddressV6 ip)
inline

Definition at line 272 of file UT_IpAddress.h.

Member Function Documentation

static SYS_NO_DISCARD_RESULT UT_IpAddress UT_IpAddress::fromString ( const UT_StringRef str)
inlinestatic

Definition at line 333 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddress::isLoopback ( ) const
inline

Definition at line 326 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddress::isUnspecified ( ) const
inline

Definition at line 320 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddress::isV4 ( ) const
inline

Definition at line 318 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT bool UT_IpAddress::isV6 ( ) const
inline

Definition at line 319 of file UT_IpAddress.h.

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

Definition at line 287 of file UT_IpAddress.h.

UT_IpAddress& UT_IpAddress::operator= ( const UT_IpAddress ip)
inline

Definition at line 292 of file UT_IpAddress.h.

UT_IpAddress& UT_IpAddress::operator= ( const UT_IpAddressV4 ip)
inline

Definition at line 305 of file UT_IpAddress.h.

UT_IpAddress& UT_IpAddress::operator= ( const UT_IpAddressV6 ip)
inline

Definition at line 311 of file UT_IpAddress.h.

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

Definition at line 277 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_StringHolder UT_IpAddress::toString ( ) const
inline

Definition at line 345 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_IpAddressV4 UT_IpAddress::toV4 ( ) const
inline

Definition at line 352 of file UT_IpAddress.h.

SYS_NO_DISCARD_RESULT UT_IpAddressV6 UT_IpAddress::toV6 ( ) const
inline

Definition at line 358 of file UT_IpAddress.h.


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