![]() |
Qt 6.x
The Qt SDK
|
#include <qstringhash_p.h>
Classes | |
class | Iterator |
struct | NewedNode |
struct | Node |
struct | ReservedNodePool |
Public Types | |
typedef QHashedString | key_type |
typedef T | mapped_type |
using | MutableIteratorData = QStringHashData::IteratorData< QStringHash< T > > |
using | ConstIteratorData = QStringHashData::IteratorData< const QStringHash< T > > |
using | MutableIterator = Iterator< MutableIteratorData, T > |
using | ConstIterator = Iterator< ConstIteratorData, const T > |
Public Member Functions | |
template<typename K > | |
Node * | findNode (const K &) const |
Node * | createNode (const Node &o) |
template<typename K > | |
Node * | createNode (const K &, const T &) |
Node * | insertNode (Node *, quint32) |
void | initializeNode (Node *, const QHashedString &key) |
void | initializeNode (Node *, const QHashedCStringRef &key) |
template<typename K > | |
Node * | takeNode (const K &key, const T &value) |
Node * | takeNode (const Node &o) |
void | copy (const QStringHash< T > &) |
void | copyNode (const QStringHashNode *otherNode) |
QStringHash () | |
QStringHash (const QStringHash &) | |
~QStringHash () | |
QStringHash & | operator= (const QStringHash< T > &) |
void | copyAndReserve (const QStringHash< T > &other, int additionalReserve) |
bool | isEmpty () const |
void | clear () |
int | count () const |
int | numBuckets () const |
template<typename K > | |
void | insert (const K &, const T &) |
void | insert (const MutableIterator &) |
void | insert (const ConstIterator &) |
template<typename K > | |
T * | value (const K &) const |
T * | value (const QV4::String *string) const |
T * | value (const MutableIterator &) const |
T * | value (const ConstIterator &) const |
template<typename K > | |
bool | contains (const K &) const |
template<typename K > | |
T & | operator[] (const K &) |
MutableIterator | begin () |
ConstIterator | begin () const |
ConstIterator | constBegin () const |
MutableIterator | end () |
ConstIterator | end () const |
ConstIterator | constEnd () const |
template<typename K > | |
MutableIterator | find (const K &) |
template<typename K > | |
ConstIterator | find (const K &) const |
void | reserve (int) |
Public Attributes | |
QStringHashData | data |
NewedNode * | newedNodes |
ReservedNodePool * | nodePool |
Definition at line 270 of file qstringhash_p.h.
using QStringHash< T >::ConstIterator = Iterator<ConstIteratorData, const T> |
Definition at line 376 of file qstringhash_p.h.
using QStringHash< T >::ConstIteratorData = QStringHashData::IteratorData<const QStringHash<T> > |
Definition at line 277 of file qstringhash_p.h.
typedef QHashedString QStringHash< T >::key_type |
Definition at line 273 of file qstringhash_p.h.
typedef T QStringHash< T >::mapped_type |
Definition at line 274 of file qstringhash_p.h.
using QStringHash< T >::MutableIterator = Iterator<MutableIteratorData, T> |
Definition at line 375 of file qstringhash_p.h.
using QStringHash< T >::MutableIteratorData = QStringHashData::IteratorData<QStringHash<T> > |
Definition at line 276 of file qstringhash_p.h.
|
inline |
Definition at line 413 of file qstringhash_p.h.
|
inline |
Definition at line 419 of file qstringhash_p.h.
References QStringHash< T >::copy(), other(), and QStringHash< T >::reserve().
|
inline |
Definition at line 454 of file qstringhash_p.h.
References clear().
|
inline |
Definition at line 762 of file qstringhash_p.h.
Referenced by QStringHash< T >::constBegin(), QQmlTypeModule::remove(), and QQmlTypeModule::walkCompositeSingletons().
|
inline |
Definition at line 768 of file qstringhash_p.h.
|
inline |
Definition at line 460 of file qstringhash_p.h.
Referenced by QLinkedStringHash< T >::clear(), and QQmlTypeLoader::clearCache().
|
inline |
Definition at line 397 of file qstringhash_p.h.
References QStringHash< T >::begin().
|
inline |
Definition at line 401 of file qstringhash_p.h.
References QStringHash< T >::end().
Definition at line 733 of file qstringhash_p.h.
Referenced by QQmlTypeNameCache::add(), and QQmlTypeNameCache::add().
|
inline |
Definition at line 579 of file qstringhash_p.h.
References i, other(), and Q_ASSERT.
Referenced by QStringHash< T >::QStringHash(), and QLinkedStringHash< T >::linkAndReserve().
void QStringHash< T >::copyAndReserve | ( | const QStringHash< T > & | other, |
int | additionalReserve | ||
) |
void QStringHash< T >::copyNode | ( | const QStringHashNode * | otherNode | ) |
Definition at line 565 of file qstringhash_p.h.
References QTaggedPointer< T, Tag >::data(), QStringHashNode::hash, next, and QStringHashNode::next.
|
inline |
Definition at line 489 of file qstringhash_p.h.
|
inline |
Definition at line 647 of file qstringhash_p.h.
|
inline |
Definition at line 639 of file qstringhash_p.h.
References o.
Referenced by QLinkedStringMultiHash< T >::insert(), QLinkedStringHash< T >::insert(), and QLinkedStringMultiHash< T >::insert().
|
inline |
Definition at line 774 of file qstringhash_p.h.
Referenced by QStringHash< T >::constEnd(), QQmlTypePrivate::insertEnums(), QQmlTypeModule::remove(), and QQmlTypeModule::walkCompositeSingletons().
|
inline |
Definition at line 780 of file qstringhash_p.h.
|
inline |
Definition at line 787 of file qstringhash_p.h.
Referenced by QQmlTypePrivate::insertEnums().
|
inline |
Definition at line 795 of file qstringhash_p.h.
|
inline |
Definition at line 693 of file qstringhash_p.h.
References QTaggedPointer< T, Tag >::data(), QStringHashNode::equals(), and QStringHashNode::next.
Referenced by QLinkedStringHash< T >::insert().
|
inline |
Definition at line 513 of file qstringhash_p.h.
References QStringHashNode::ckey, QStringHashNode::hash, and QStringHashNode::length.
|
inline |
Definition at line 501 of file qstringhash_p.h.
References QStringHashNode::arrayData, QArrayDataPointer< T >::d_ptr(), QArrayDataPointer< T >::data(), QStringHashNode::hash, QStringHashNode::length, mutableStringData(), QArrayData::ref(), QStringHashNode::setQString(), and QStringHashNode::strData.
|
inline |
Definition at line 686 of file qstringhash_p.h.
References insert(), and iter.
|
inline |
Definition at line 670 of file qstringhash_p.h.
Referenced by QQmlTypeNameCache::add(), QQmlTypeNameCache::add(), QQmlTypePrivate::insertEnums(), QQmlTypePrivate::insertEnumsFromPropertyCache(), QQmlImportDatabase::locateLocalQmldir(), QQmlTypeLoader::qmldirContent(), and QQmlTypeLoader::setQmldirContent().
|
inline |
Definition at line 680 of file qstringhash_p.h.
References insert(), and iter.
|
inline |
Definition at line 654 of file qstringhash_p.h.
References hash.
|
inline |
Definition at line 483 of file qstringhash_p.h.
Referenced by QQmlTypeNameCache::isEmpty().
|
inlinestatic |
Definition at line 624 of file qstringhash_p.h.
References Data.
|
inlinestatic |
Definition at line 598 of file qstringhash_p.h.
References d, Data, and QStringHash< T >::NewedNode::nextNewed.
Referenced by QLinkedStringHash< T >::iterateNext(), and QStringHash< T >::Iterator< Data, Value >::operator++().
|
inline |
Definition at line 495 of file qstringhash_p.h.
QStringHash< T > & QStringHash< T >::operator= | ( | const QStringHash< T > & | other | ) |
Definition at line 740 of file qstringhash_p.h.
|
inline |
Definition at line 748 of file qstringhash_p.h.
References QStringHash< T >::ReservedNodePool::count.
Referenced by QStringHash< T >::QStringHash(), and QLinkedStringHash< T >::linkAndReserve().
|
inline |
Definition at line 522 of file qstringhash_p.h.
References QStringHash< T >::NewedNode::nextNewed, and QStringHash< T >::Node::value.
|
inline |
Definition at line 538 of file qstringhash_p.h.
References QStringHashNode::arrayData, QStringHashNode::ckey, QStringHashNode::hash, QStringHashNode::length, QStringHash< T >::NewedNode::nextNewed, o, QArrayData::ref(), QStringHashNode::setQString(), QStringHashNode::strData, QStringHashNode::symbolId, and QStringHash< T >::Node::value.
|
inline |
Definition at line 719 of file qstringhash_p.h.
References iter.
Definition at line 706 of file qstringhash_p.h.
Referenced by QQmlTypeNameCache::add(), QQmlTypeNameCache::add(), QQmlType::enumValue(), QQmlType::enumValue(), QQmlType::enumValue(), QQmlImportDatabase::locateLocalQmldir(), QQmlTypeLoader::qmldirContent(), QQmlType::scopedEnumIndex(), QQmlType::scopedEnumIndex(), QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), QQmlType::scopedEnumValue(), QQmlTypeLoader::setQmldirContent(), QQmlTypeModule::type(), and QQmlTypeModule::type().
|
inline |
Definition at line 713 of file qstringhash_p.h.
References iter.
|
inline |
Definition at line 725 of file qstringhash_p.h.
QStringHashData QStringHash< T >::data |
Definition at line 301 of file qstringhash_p.h.
NewedNode* QStringHash< T >::newedNodes |
Definition at line 302 of file qstringhash_p.h.
ReservedNodePool* QStringHash< T >::nodePool |
Definition at line 303 of file qstringhash_p.h.
Referenced by QLinkedStringHash< T >::iterator(), and QLinkedStringHash< T >::linkAndReserve().