![]() |
Qt 6.x
The Qt SDK
|
#include <qstringhash_p.h>
Public Types | |
enum | Tag { NodeIsCString , NodeIsQString } |
Public Member Functions | |
QStringHashNode () | |
QStringHashNode (const QHashedString &key) | |
QStringHashNode (const QHashedCStringRef &key) | |
QStringHashNode (const QStringHashNode &o) | |
~QStringHashNode () | |
QHashedString | key () const |
bool | isQString () const |
void | setQString (bool v) |
qsizetype | size () const |
const char * | cStrData () const |
const char16_t * | utf16Data () const |
bool | equals (const QV4::Value &string) const |
bool | equals (const QV4::String *string) const |
bool | equals (const QHashedStringRef &string) const |
bool | equals (const QHashedCStringRef &string) const |
Public Attributes | ||
QTaggedPointer< QStringHashNode, Tag > | next | |
qint32 | length = 0 | |
quint32 | hash = 0 | |
quint32 | symbolId = 0 | |
QTypedArrayData< char16_t > * | arrayData = nullptr | |
union { | ||
const char * ckey = nullptr | ||
char16_t * strData | ||
}; | ||
Definition at line 33 of file qstringhash_p.h.
enum QStringHashNode::Tag |
Enumerator | |
---|---|
NodeIsCString | |
NodeIsQString |
Definition at line 75 of file qstringhash_p.h.
|
inline |
Definition at line 36 of file qstringhash_p.h.
|
inline |
Definition at line 40 of file qstringhash_p.h.
References arrayData, Q_ASSERT, QArrayData::ref(), and setQString().
|
inline |
Definition at line 51 of file qstringhash_p.h.
|
inline |
Definition at line 56 of file qstringhash_p.h.
References arrayData, ckey, isQString(), o, QArrayData::ref(), setQString(), and strData.
|
inline |
Definition at line 69 of file qstringhash_p.h.
References arrayData, QTypedArrayData< T >::deallocate(), QArrayData::deref(), and isQString().
|
inline |
|
inline |
Definition at line 136 of file qstringhash_p.h.
References QHashedString::compare(), cStrData(), hash, isQString(), and utf16Data().
|
inline |
Definition at line 129 of file qstringhash_p.h.
References QHashedString::compare(), cStrData(), hash, isQString(), and utf16Data().
|
inline |
Definition at line 119 of file qstringhash_p.h.
References cStrData(), hash, isQString(), and utf16Data().
|
inline |
Definition at line 110 of file qstringhash_p.h.
References cStrData(), isQString(), and utf16Data().
Referenced by QStringHash< T >::findNode().
|
inline |
Definition at line 103 of file qstringhash_p.h.
References next, NodeIsQString, and QTaggedPointer< T, Tag >::tag().
Referenced by QStringHashNode(), ~QStringHashNode(), equals(), equals(), equals(), equals(), and key().
|
inline |
Definition at line 92 of file qstringhash_p.h.
References arrayData, ckey, QString::fromLatin1(), hash, isQString(), QArrayData::ref(), and strData.
|
inline |
Definition at line 104 of file qstringhash_p.h.
References next, NodeIsCString, NodeIsQString, and QTaggedPointer< T, Tag >::setTag().
Referenced by QStringHashNode(), QStringHashNode(), QStringHash< T >::initializeNode(), and QStringHash< T >::takeNode().
|
inline |
Definition at line 106 of file qstringhash_p.h.
References length.
|
inline |
union { ... } QStringHashNode |
QTypedArrayData<char16_t>* QStringHashNode::arrayData = nullptr |
Definition at line 86 of file qstringhash_p.h.
Referenced by QStringHashNode(), QStringHashNode(), ~QStringHashNode(), QStringHash< T >::initializeNode(), key(), and QStringHash< T >::takeNode().
const char* QStringHashNode::ckey = nullptr |
Definition at line 88 of file qstringhash_p.h.
Referenced by QStringHashNode(), cStrData(), QStringHash< T >::initializeNode(), key(), and QStringHash< T >::takeNode().
quint32 QStringHashNode::hash = 0 |
Definition at line 83 of file qstringhash_p.h.
Referenced by QStringHash< T >::copyNode(), equals(), equals(), equals(), QStringHash< T >::initializeNode(), QStringHash< T >::initializeNode(), key(), QStringHashData::rehashNode(), and QStringHash< T >::takeNode().
qint32 QStringHashNode::length = 0 |
Definition at line 82 of file qstringhash_p.h.
Referenced by QStringHash< T >::initializeNode(), QStringHash< T >::initializeNode(), size(), and QStringHash< T >::takeNode().
QTaggedPointer<QStringHashNode, Tag> QStringHashNode::next |
Definition at line 80 of file qstringhash_p.h.
Referenced by QStringHash< T >::copyNode(), QStringHash< T >::findNode(), isQString(), QStringHashData::rehashNode(), and setQString().
char16_t* QStringHashNode::strData |
Definition at line 89 of file qstringhash_p.h.
Referenced by QStringHashNode(), QStringHash< T >::initializeNode(), key(), QStringHash< T >::takeNode(), and utf16Data().
quint32 QStringHashNode::symbolId = 0 |
Definition at line 84 of file qstringhash_p.h.
Referenced by QStringHash< T >::takeNode().