Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QHostAddressPrivate Class Reference

#include <qhostaddress_p.h>

Inheritance diagram for QHostAddressPrivate:
Collaboration diagram for QHostAddressPrivate:

Public Member Functions

void setAddress (quint32 a_=0)
void setAddress (const quint8 *a_)
void setAddress (const Q_IPV6ADDR &a_)
bool parse (const QString &ipString)
void clear ()
AddressClassification classify () const
Public Member Functions inherited from QSharedData
 QSharedData () noexcept
 Constructs a QSharedData object with a reference count of 0.
 QSharedData (const QSharedData &) noexcept
 Constructs a QSharedData object with reference count 0.
QSharedDataoperator= (const QSharedData &)=delete
 ~QSharedData ()=default

Static Public Member Functions

static AddressClassification classify (const QHostAddress &address)

Public Attributes

QString scopeId
union { 
   Q_IPV6ADDR   a6 = {} 
   struct { 
      quint64   c [2] 
   }   a6_64
   struct { 
      quint32   c [4] 
   }   a6_32
}; 
quint32 a = 0
qint8 protocol = QHostAddress::UnknownNetworkLayerProtocol
Public Attributes inherited from QSharedData
QAtomicInt ref

Friends

class QHostAddress

Detailed Description

Definition at line 69 of file qhostaddress_p.h.

Member Function Documentation

◆ classify() [1/2]

AddressClassification QHostAddressPrivate::classify ( ) const

Definition at line 150 of file qhostaddress.cpp.

◆ classify() [2/2]

AddressClassification QHostAddressPrivate::classify ( const QHostAddress & address)
inlinestatic

Definition at line 90 of file qhostaddress_p.h.

◆ clear()

void QHostAddressPrivate::clear ( )

Definition at line 143 of file qhostaddress.cpp.

◆ parse()

bool QHostAddressPrivate::parse ( const QString & ipString)

Definition at line 118 of file qhostaddress.cpp.

References setAddress().

Here is the call graph for this function:

◆ setAddress() [1/3]

void QHostAddressPrivate::setAddress ( const Q_IPV6ADDR & a_)

Definition at line 100 of file qhostaddress.cpp.

References setAddress().

Referenced by parse(), and setAddress().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAddress() [2/3]

void QHostAddressPrivate::setAddress ( const quint8 * a_)

Definition at line 91 of file qhostaddress.cpp.

◆ setAddress() [3/3]

QT_BEGIN_NAMESPACE void QHostAddressPrivate::setAddress ( quint32 a_ = 0)

Definition at line 41 of file qhostaddress.cpp.

◆ QHostAddress

friend class QHostAddress
friend

Definition at line 93 of file qhostaddress_p.h.

Member Data Documentation

◆ [union]

union { ... } QHostAddressPrivate

◆ a

quint32 QHostAddressPrivate::a = 0

Definition at line 86 of file qhostaddress_p.h.

◆ a6

Q_IPV6ADDR QHostAddressPrivate::a6 = {}

Definition at line 82 of file qhostaddress_p.h.

◆ [struct]

struct { ... } QHostAddressPrivate::a6_32

◆ [struct]

struct { ... } QHostAddressPrivate::a6_64

◆ c [1/2]

quint64 QHostAddressPrivate::c[2]

Definition at line 83 of file qhostaddress_p.h.

◆ c [2/2]

quint32 QHostAddressPrivate::c[4]

Definition at line 84 of file qhostaddress_p.h.

◆ protocol

qint8 QHostAddressPrivate::protocol = QHostAddress::UnknownNetworkLayerProtocol

Definition at line 87 of file qhostaddress_p.h.

◆ scopeId

QString QHostAddressPrivate::scopeId

Definition at line 79 of file qhostaddress_p.h.


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