Qt 4.8
|
#include <qhash.h>
Classes | |
struct | Node |
Public Functions | |
void * | allocateNode () |
void * | allocateNode (int nodeAlign) |
void | destroyAndFree () |
QHashData * | detach_helper (void(*node_duplicate)(Node *, void *), int nodeSize) |
QHashData * | detach_helper2 (void(*node_duplicate)(Node *, void *), void(*node_delete)(Node *), int nodeSize, int nodeAlign) |
Node * | firstNode () |
void | free_helper (void(*node_delete)(Node *)) |
void | freeNode (void *node) |
void | hasShrunk () |
void | mightGrow () |
void | rehash (int hint) |
bool | willGrow () |
Static Public Functions | |
static Node * | nextNode (Node *node) |
static Node * | previousNode (Node *node) |
Public Variables | |
Node ** | buckets |
Node * | fakeNext |
int | nodeSize |
short | numBits |
int | numBuckets |
QBasicAtomicInt | ref |
uint | reserved: 30 |
uint | sharable: 1 |
int | size |
uint | strictAlignment: 1 |
short | userNumBits |
Static Public Variables | |
static QHashData | shared_null |
void * QHashData::allocateNode | ( | ) |
void * QHashData::allocateNode | ( | int | nodeAlign | ) |
Definition at line 177 of file qhash.cpp.
Definition at line 192 of file qhash.cpp.
QHashData * QHashData::detach_helper2 | ( | void(*)(Node *, void *) | node_duplicate, |
void(*)(Node *) | node_delete, | ||
int | nodeSize, | ||
int | nodeAlign | ||
) |
Definition at line 197 of file qhash.cpp.
Referenced by detach_helper().
|
inline |
Definition at line 181 of file qhash.h.
Referenced by rehash().
void QHashData::free_helper | ( | void(*)(Node *) | node_delete | ) |
Definition at line 264 of file qhash.cpp.
Referenced by destroyAndFree(), and QHash< QExplicitlySharedDataPointer, QHash >::freeData().
void QHashData::freeNode | ( | void * | node | ) |
|
static |
Definition at line 285 of file qhash.cpp.
Referenced by detach_helper2(), QHash< Key, T >::iterator::operator++(), and QHash< Key, T >::const_iterator::operator++().
|
static |
Definition at line 308 of file qhash.cpp.
Referenced by QHash< Key, T >::iterator::operator--(), and QHash< Key, T >::const_iterator::operator--().
void QHashData::rehash | ( | int | hint | ) |
Definition at line 349 of file qhash.cpp.
Node** QHashData::buckets |
Definition at line 120 of file qhash.h.
Referenced by destroyAndFree(), detach_helper2(), free_helper(), and rehash().
Node* QHashData::fakeNext |
Definition at line 119 of file qhash.h.
Referenced by destroyAndFree().
int QHashData::nodeSize |
Definition at line 123 of file qhash.h.
Referenced by allocateNode(), destroyAndFree(), and detach_helper2().
short QHashData::numBits |
Definition at line 125 of file qhash.h.
Referenced by destroyAndFree(), detach_helper2(), and rehash().
int QHashData::numBuckets |
Definition at line 126 of file qhash.h.
Referenced by destroyAndFree(), detach_helper2(), free_helper(), and rehash().
QBasicAtomicInt QHashData::ref |
Definition at line 121 of file qhash.h.
Referenced by destroyAndFree(), QHash< QExplicitlySharedDataPointer, QHash >::operator=(), QSqlDatabase::QSqlDatabase(), and QSqlDatabase::~QSqlDatabase().
|
static |
Definition at line 151 of file qhash.h.
Referenced by QSqlDatabase::isValid().
int QHashData::size |
Definition at line 122 of file qhash.h.
Referenced by destroyAndFree(), detach_helper2(), and rehash().
uint QHashData::strictAlignment |
Definition at line 128 of file qhash.h.
Referenced by allocateNode(), and freeNode().
short QHashData::userNumBits |
Definition at line 124 of file qhash.h.
Referenced by destroyAndFree(), detach_helper2(), and rehash().