Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
QV4::IdentifierHash Struct Reference

#include <qv4identifierhash_p.h>

+ Collaboration diagram for QV4::IdentifierHash:

Public Member Functions

 IdentifierHash ()=default
 
 IdentifierHash (ExecutionEngine *engine)
 
 IdentifierHash (const IdentifierHash &other)
 
 ~IdentifierHash ()
 
IdentifierHashoperator= (const IdentifierHash &other)
 
bool isEmpty () const
 
int count () const
 
void detach ()
 
void add (const QString &str, int value)
 
void add (Heap::String *str, int value)
 
int value (const QString &str) const
 
int value (String *str) const
 
QString findId (int value) const
 

Detailed Description

Definition at line 27 of file qv4identifierhash_p.h.

Constructor & Destructor Documentation

◆ IdentifierHash() [1/3]

QV4::IdentifierHash::IdentifierHash ( )
default

◆ IdentifierHash() [2/3]

QV4::IdentifierHash::IdentifierHash ( ExecutionEngine engine)

Definition at line 14 of file qv4identifierhash.cpp.

References engine, isEmpty(), and Q_ASSERT.

+ Here is the call graph for this function:

◆ IdentifierHash() [3/3]

QV4::IdentifierHash::IdentifierHash ( const IdentifierHash other)

Definition at line 135 of file qv4identifierhash.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ ~IdentifierHash()

QV4::IdentifierHash::~IdentifierHash ( )

Definition at line 142 of file qv4identifierhash.cpp.

References d.

Member Function Documentation

◆ add() [1/2]

void QV4::IdentifierHash::add ( const QString str,
int  value 
)

Definition at line 163 of file qv4identifierhash.cpp.

References e, str, and toIdentifier().

+ Here is the call graph for this function:

◆ add() [2/2]

void QV4::IdentifierHash::add ( Heap::String str,
int  value 
)

Definition at line 169 of file qv4identifierhash.cpp.

References e, str, and toIdentifier().

+ Here is the call graph for this function:

◆ count()

int QV4::IdentifierHash::count ( ) const

Definition at line 158 of file qv4identifierhash.cpp.

References d.

◆ detach()

void QV4::IdentifierHash::detach ( )

Definition at line 20 of file qv4identifierhash.cpp.

References QBasicAtomicInteger< T >::deref(), QBasicAtomicInteger< T >::loadAcquire(), and QV4::IdentifierHashData::refCount.

+ Here is the call graph for this function:

◆ findId()

QString QV4::IdentifierHash::findId ( int  value) const

Definition at line 123 of file qv4identifierhash.cpp.

References d, and e.

◆ isEmpty()

bool QV4::IdentifierHash::isEmpty ( ) const
inline

Definition at line 35 of file qv4identifierhash_p.h.

References d.

Referenced by IdentifierHash().

+ Here is the caller graph for this function:

◆ operator=()

IdentifierHash & QV4::IdentifierHash::operator= ( const IdentifierHash other)

Definition at line 148 of file qv4identifierhash.cpp.

References d, and other().

+ Here is the call graph for this function:

◆ value() [1/2]

int QV4::IdentifierHash::value ( const QString str) const

Definition at line 175 of file qv4identifierhash.cpp.

References e, and str.

◆ value() [2/2]

int QV4::IdentifierHash::value ( String str) const

Definition at line 181 of file qv4identifierhash.cpp.

References e, and str.


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