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

#include <qstringhash_p.h>

+ Collaboration diagram for QStringHashData:

Classes

struct  IteratorData
 

Public Types

enum  { MinNumBits = 4 }
 

Public Member Functions

 QStringHashData ()=default
 
 ~QStringHashData ()=default
 
void rehashToBits (short bits)
 
void rehashToSize (int size)
 
void rehashNode (QStringHashNode **newBuckets, int nb, QStringHashNode *node)
 

Public Attributes

QStringHashNode ** buckets = nullptr
 
int numBuckets = 0
 
int size = 0
 
short numBits = 0
 

Detailed Description

Definition at line 144 of file qstringhash_p.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
MinNumBits 

Definition at line 155 of file qstringhash_p.h.

Constructor & Destructor Documentation

◆ QStringHashData()

QStringHashData::QStringHashData ( )
default

◆ ~QStringHashData()

QStringHashData::~QStringHashData ( )
default

Member Function Documentation

◆ rehashNode()

void QStringHashData::rehashNode ( QStringHashNode ** newBuckets,
int nb,
QStringHashNode * node )
inline

Definition at line 207 of file qstringhash_p.h.

References QTaggedPointer< T, Tag >::data(), QStringHashNode::hash, next, QStringHashNode::next, and rehashNode().

Referenced by rehashNode(), and rehashToBits().

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

◆ rehashToBits()

void QStringHashData::rehashToBits ( short bits)
inline

Definition at line 173 of file qstringhash_p.h.

References buckets, i, MinNumBits, numBits, numBuckets, qMax(), qPrimeForNumBits(), and rehashNode().

Referenced by rehashToSize().

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

◆ rehashToSize()

void QStringHashData::rehashToSize ( int size)
inline

Definition at line 197 of file qstringhash_p.h.

References MinNumBits, numBits, qMax(), qPrimeForNumBits(), and rehashToBits().

+ Here is the call graph for this function:

Member Data Documentation

◆ buckets

QStringHashNode** QStringHashData::buckets = nullptr

Definition at line 157 of file qstringhash_p.h.

Referenced by rehashToBits().

◆ numBits

short QStringHashData::numBits = 0

Definition at line 160 of file qstringhash_p.h.

Referenced by rehashToBits(), and rehashToSize().

◆ numBuckets

int QStringHashData::numBuckets = 0

Definition at line 158 of file qstringhash_p.h.

Referenced by rehashToBits().

◆ size

int QStringHashData::size = 0

Definition at line 159 of file qstringhash_p.h.


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