Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QLinkedStringHash< T > Class Template Reference

#include <qlinkedstringhash_p.h>

+ Inheritance diagram for QLinkedStringHash< T >:
+ Collaboration diagram for QLinkedStringHash< T >:

Public Types

using ConstIteratorData = QStringHashData::IteratorData<const QLinkedStringHash>
 
using ConstIterator = typename QStringHash<T>::template Iterator<ConstIteratorData, const T>
 

Public Member Functions

void linkAndReserve (const QLinkedStringHash< T > &other, int additionalReserve)
 
bool isLinked () const
 
void clear ()
 
template<typename K >
void insert (const K &key, const T &value)
 
template<typename K >
ConstIterator find (const K &key) const
 
ConstIterator begin () const
 
ConstIterator end () const
 
T * value (const ConstIterator &iter)
 

Protected Member Functions

ConstIteratorData iterateFirst () const
 
ConstIterator iterator (Node *n) const
 

Static Protected Member Functions

static ConstIteratorData iterateNext (const ConstIteratorData &d)
 

Protected Attributes

friend QStringHash< T >
 
const QLinkedStringHash< T > * link = nullptr
 

Detailed Description

template<class T>
class QLinkedStringHash< T >

Definition at line 23 of file qlinkedstringhash_p.h.

Member Typedef Documentation

◆ ConstIterator

template<class T >
using QLinkedStringHash< T >::ConstIterator = typename QStringHash<T>::template Iterator<ConstIteratorData, const T>

Definition at line 32 of file qlinkedstringhash_p.h.

◆ ConstIteratorData

template<class T >
using QLinkedStringHash< T >::ConstIteratorData = QStringHashData::IteratorData<const QLinkedStringHash>

Definition at line 31 of file qlinkedstringhash_p.h.

Member Function Documentation

◆ begin()

template<class T >
ConstIterator QLinkedStringHash< T >::begin ( ) const
inline

Definition at line 92 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::iterateFirst().

Referenced by QQmlPropertyCache::toMetaObjectBuilder().

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

◆ clear()

template<class T >
void QLinkedStringHash< T >::clear ( )
inline

Definition at line 68 of file qlinkedstringhash_p.h.

References QStringHash< T >::clear(), and QLinkedStringHash< T >::link.

Referenced by QQmlPropertyCache::~QQmlPropertyCache(), QLinkedStringHash< T >::linkAndReserve(), and QQmlPropertyCache::update().

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

◆ end()

template<class T >
ConstIterator QLinkedStringHash< T >::end ( ) const
inline

Definition at line 99 of file qlinkedstringhash_p.h.

Referenced by QQmlPropertyCache::toMetaObjectBuilder().

+ Here is the caller graph for this function:

◆ find()

template<class T >
template<typename K >
ConstIterator QLinkedStringHash< T >::find ( const K & key) const
inline

Definition at line 87 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::iterator().

+ Here is the call graph for this function:

◆ insert()

template<class T >
template<typename K >
void QLinkedStringHash< T >::insert ( const K & key,
const T & value )
inline

Definition at line 75 of file qlinkedstringhash_p.h.

References QStringHash< T >::createNode(), QStringHash< T >::findNode(), QLinkedStringHash< T >::link, and nullptr.

+ Here is the call graph for this function:

◆ isLinked()

template<class T >
bool QLinkedStringHash< T >::isLinked ( ) const
inline

Definition at line 63 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::link.

◆ iterateFirst()

template<class T >
ConstIteratorData QLinkedStringHash< T >::iterateFirst ( ) const
inlineprotected

Definition at line 114 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::link.

Referenced by QLinkedStringHash< T >::begin().

+ Here is the caller graph for this function:

◆ iterateNext()

template<class T >
static ConstIteratorData QLinkedStringHash< T >::iterateNext ( const ConstIteratorData & d)
inlinestaticprotected

Definition at line 122 of file qlinkedstringhash_p.h.

References d, and QStringHash< T >::iterateNext().

+ Here is the call graph for this function:

◆ iterator()

template<class T >
ConstIterator QLinkedStringHash< T >::iterator ( Node * n) const
inlineprotected

Definition at line 129 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::link, QStringHashData::IteratorData< StringHash >::n, QStringHash< T >::nodePool, QStringHash< T >::ReservedNodePool::nodes, and QStringHash< T >::ReservedNodePool::used.

Referenced by QLinkedStringHash< T >::find(), and QLinkedStringMultiHash< T >::findNext().

+ Here is the caller graph for this function:

◆ linkAndReserve()

template<class T >
void QLinkedStringHash< T >::linkAndReserve ( const QLinkedStringHash< T > & other,
int additionalReserve )
inline

Definition at line 34 of file qlinkedstringhash_p.h.

References QLinkedStringHash< T >::clear(), QStringHash< T >::copy(), QStringHash< T >::ReservedNodePool::count, QLinkedStringHash< T >::link, QStringHash< T >::nodePool, QStringHash< T >::ReservedNodePool::nodes, other(), QStringHash< T >::reserve(), and QStringHash< T >::ReservedNodePool::used.

Referenced by QQmlPropertyCache::invalidate().

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

◆ value()

template<class T >
T * QLinkedStringHash< T >::value ( const ConstIterator & iter)
inline

Definition at line 101 of file qlinkedstringhash_p.h.

References iter, and QLinkedStringHash< T >::value().

Referenced by QLinkedStringHash< T >::value().

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

Member Data Documentation

◆ link

◆ QStringHash< T >

template<class T >
friend QLinkedStringHash< T >::QStringHash< T >
protected

Definition at line 108 of file qlinkedstringhash_p.h.


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