![]() |
Qt 6.x
The Qt SDK
|
#include <qhostaddress_p.h>
Inheritance diagram for QHostAddressPrivate:
Collaboration diagram for QHostAddressPrivate:Public Member Functions | |
| QHostAddressPrivate () | |
| 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. | |
| QSharedData & | operator= (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 | |
| qint8 | protocol | |
Public Attributes inherited from QSharedData | ||
| QAtomicInt | ref | |
Friends | |
| class | QHostAddress |
Definition at line 68 of file qhostaddress_p.h.
| QT_BEGIN_NAMESPACE QHostAddressPrivate::QHostAddressPrivate | ( | ) |
Definition at line 31 of file qhostaddress.cpp.
References a6.
| AddressClassification QHostAddressPrivate::classify | ( | ) | const |
Definition at line 146 of file qhostaddress.cpp.
References a6_32, a6_64, BroadcastAddress, GlobalAddress, LinkLocalAddress, LocalNetAddress, LoopbackAddress, MulticastAddress, PrivateNetworkAddress, protocol, Q_ASSERT, qFromBigEndian(), SiteLocalAddress, UniqueLocalAddress, UnknownAddress, and QHostAddress::UnknownNetworkLayerProtocol.
Referenced by QNetworkInterfacePrivate::calculateDnsEligibility(), QHostAddress::isBroadcast(), QHostAddress::isGlobal(), QHostAddress::isLinkLocal(), QHostAddress::isLoopback(), QHostAddress::isMulticast(), QHostAddress::isPrivateUse(), QHostAddress::isSiteLocal(), and QHostAddress::isUniqueLocalUnicast().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
Definition at line 91 of file qhostaddress_p.h.
| void QHostAddressPrivate::clear | ( | ) |
Definition at line 139 of file qhostaddress.cpp.
References a6, protocol, and QHostAddress::UnknownNetworkLayerProtocol.
Referenced by QHostAddress::clear().
Here is the caller graph for this function:| bool QHostAddressPrivate::parse | ( | const QString & | ipString | ) |
Definition at line 114 of file qhostaddress.cpp.
References QIPAddressUtils::parseIp4(), parseIp6(), protocol, scopeId, setAddress(), QString::simplified(), and QHostAddress::UnknownNetworkLayerProtocol.
Referenced by QHostAddress::QHostAddress(), and QHostAddress::setAddress().
Here is the call graph for this function:
Here is the caller graph for this function:| void QHostAddressPrivate::setAddress | ( | const Q_IPV6ADDR & | a_ | ) |
Definition at line 96 of file qhostaddress.cpp.
References setAddress().
Here is the call graph for this function:Definition at line 87 of file qhostaddress.cpp.
References a6, convertToIpv4(), QHostAddress::ConvertUnspecifiedAddress, QHostAddress::ConvertV4MappedToIPv4, QHostAddress::IPv6Protocol, and protocol.
Here is the call graph for this function:Definition at line 37 of file qhostaddress.cpp.
References a6_32, a6_64, QHostAddress::IPv4Protocol, protocol, and qToBigEndian().
Referenced by parse(), setAddress(), QHostAddress::setAddress(), QHostAddress::setAddress(), QHostAddress::setAddress(), and QHostAddress::setAddress().
Here is the call graph for this function:
Here is the caller graph for this function:
|
friend |
Definition at line 94 of file qhostaddress_p.h.
| union { ... } QHostAddressPrivate |
| quint32 QHostAddressPrivate::a |
Definition at line 87 of file qhostaddress_p.h.
Referenced by QHostAddress::isEqual(), QHostAddress::isInSubnet(), QHostAddress::operator==(), and QHostAddress::toIPv4Address().
| Q_IPV6ADDR QHostAddressPrivate::a6 |
Definition at line 83 of file qhostaddress_p.h.
Referenced by QHostAddressPrivate(), clear(), QHostAddress::isEqual(), QHostAddress::isInSubnet(), QHostAddress::parseSubnet(), setAddress(), QHostAddress::toIPv4Address(), QHostAddress::toIPv6Address(), and QHostAddress::toString().
| struct { ... } QHostAddressPrivate::a6_32 |
Referenced by classify(), and setAddress().
| struct { ... } QHostAddressPrivate::a6_64 |
Referenced by classify(), QHostAddress::isEqual(), QHostAddress::operator==(), and setAddress().
| quint64 QHostAddressPrivate::c[2] |
Definition at line 84 of file qhostaddress_p.h.
Referenced by QHostAddress::isEqual(), and QHostAddress::operator==().
| quint32 QHostAddressPrivate::c[4] |
Definition at line 85 of file qhostaddress_p.h.
| qint8 QHostAddressPrivate::protocol |
Definition at line 88 of file qhostaddress_p.h.
Referenced by classify(), clear(), QHostAddress::isEqual(), QHostAddress::isInSubnet(), QHostAddress::isNull(), QHostAddress::operator==(), parse(), QHostAddress::protocol(), QHostAddress::scopeId(), setAddress(), setAddress(), QHostAddress::setAddress(), QHostAddress::setScopeId(), QHostAddress::toIPv4Address(), and QHostAddress::toString().
| QString QHostAddressPrivate::scopeId |
Definition at line 80 of file qhostaddress_p.h.
Referenced by parse(), QHostAddress::scopeId(), QHostAddress::setScopeId(), and QHostAddress::toString().