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
QStringHashNode Class Reference

#include <qstringhash_p.h>

Inheritance diagram for QStringHashNode:
Collaboration diagram for QStringHashNode:

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, Tagnext
qint32 length = 0
quint32 hash = 0
quint32 symbolId = 0
QTypedArrayData< char16_t > * arrayData = nullptr
union { 
   const char *   ckey = nullptr 
   char16_t *   strData 
}; 

Detailed Description

Definition at line 33 of file qstringhash_p.h.

Member Enumeration Documentation

◆ Tag

Enumerator
NodeIsCString 
NodeIsQString 

Definition at line 75 of file qstringhash_p.h.

Constructor & Destructor Documentation

◆ QStringHashNode() [1/4]

QStringHashNode::QStringHashNode ( )
inline

Definition at line 36 of file qstringhash_p.h.

◆ QStringHashNode() [2/4]

QStringHashNode::QStringHashNode ( const QHashedString & key)
inline

Definition at line 40 of file qstringhash_p.h.

References QStringHashNode(), setQString(), and strData.

Referenced by QStringHashNode(), and QStringHashNode().

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

◆ QStringHashNode() [3/4]

QStringHashNode::QStringHashNode ( const QHashedCStringRef & key)
inline

Definition at line 51 of file qstringhash_p.h.

References QStringHashNode(), and ckey.

Here is the call graph for this function:

◆ QStringHashNode() [4/4]

QStringHashNode::QStringHashNode ( const QStringHashNode & o)
inline

Definition at line 56 of file qstringhash_p.h.

References QStringHashNode(), ckey, isQString(), setQString(), and strData.

Referenced by QStringHashNode().

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

◆ ~QStringHashNode()

QStringHashNode::~QStringHashNode ( )
inline

Definition at line 69 of file qstringhash_p.h.

Member Function Documentation

◆ cStrData()

const char * QStringHashNode::cStrData ( ) const
inline

Definition at line 107 of file qstringhash_p.h.

◆ equals() [1/4]

bool QStringHashNode::equals ( const QHashedCStringRef & string) const
inline

Definition at line 136 of file qstringhash_p.h.

◆ equals() [2/4]

bool QStringHashNode::equals ( const QHashedStringRef & string) const
inline

Definition at line 129 of file qstringhash_p.h.

◆ equals() [3/4]

bool QStringHashNode::equals ( const QV4::String * string) const
inline

Definition at line 119 of file qstringhash_p.h.

References isQString().

Here is the call graph for this function:

◆ equals() [4/4]

bool QStringHashNode::equals ( const QV4::Value & string) const
inline

Definition at line 110 of file qstringhash_p.h.

References isQString().

Here is the call graph for this function:

◆ isQString()

bool QStringHashNode::isQString ( ) const
inline

Definition at line 103 of file qstringhash_p.h.

Referenced by QStringHashNode(), equals(), equals(), and key().

Here is the caller graph for this function:

◆ key()

QHashedString QStringHashNode::key ( ) const
inline

Definition at line 92 of file qstringhash_p.h.

References isQString().

Here is the call graph for this function:

◆ setQString()

void QStringHashNode::setQString ( bool v)
inline

Definition at line 104 of file qstringhash_p.h.

Referenced by QStringHashNode(), and QStringHashNode().

Here is the caller graph for this function:

◆ size()

qsizetype QStringHashNode::size ( ) const
inline

Definition at line 106 of file qstringhash_p.h.

◆ utf16Data()

const char16_t * QStringHashNode::utf16Data ( ) const
inline

Definition at line 108 of file qstringhash_p.h.

Member Data Documentation

◆ [union]

union { ... } QStringHashNode

◆ arrayData

QTypedArrayData<char16_t>* QStringHashNode::arrayData = nullptr

Definition at line 86 of file qstringhash_p.h.

◆ ckey

const char* QStringHashNode::ckey = nullptr

Definition at line 88 of file qstringhash_p.h.

Referenced by QStringHashNode(), and QStringHashNode().

◆ hash

quint32 QStringHashNode::hash = 0

Definition at line 83 of file qstringhash_p.h.

◆ length

qint32 QStringHashNode::length = 0

◆ next

QTaggedPointer<QStringHashNode, Tag> QStringHashNode::next

Definition at line 80 of file qstringhash_p.h.

◆ strData

char16_t* QStringHashNode::strData

Definition at line 89 of file qstringhash_p.h.

Referenced by QStringHashNode(), and QStringHashNode().

◆ symbolId

quint32 QStringHashNode::symbolId = 0

Definition at line 84 of file qstringhash_p.h.


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