Qt 4.8
|
#include <qmap.h>
Classes | |
struct | Node |
Public Types | |
enum | { LastLevel = 11, Sparseness = 3 } |
Public Functions | |
void | continueFreeData (int offset) |
Node * | node_create (Node *update[], int offset) |
Node * | node_create (Node *update[], int offset, int alignment) |
Creates a new node inside the data structure. More... | |
void | node_delete (Node *update[], int offset, Node *node) |
Static Public Functions | |
static QMapData * | createData () |
static QMapData * | createData (int alignment) |
Public Variables | |
QMapData * | backward |
QMapData * | forward [QMapData::LastLevel+1] |
uint | insertInOrder: 1 |
uint | randomBits |
QBasicAtomicInt | ref |
uint | reserved: 29 |
uint | sharable: 1 |
int | size |
uint | strictAlignment: 1 |
int | topLevel |
Static Public Variables | |
static QMapData | shared_null |
anonymous enum |
void QMapData::continueFreeData | ( | int | offset | ) |
Definition at line 82 of file qmap.cpp.
Referenced by QMap< int, QFrameInfo >::freeData().
|
static |
Definition at line 59 of file qmap.cpp.
Referenced by QMap< int, QFrameInfo >::detach_helper(), and QMap< int, QFrameInfo >::operator==().
|
static |
Definition at line 64 of file qmap.cpp.
QMapData::Node * QMapData::node_create | ( | Node * | update[], |
int | offset | ||
) |
QMapData::Node * QMapData::node_create | ( | Node * | update[], |
int | offset, | ||
int | alignment | ||
) |
Creates a new node inside the data structure.
update is an array with pointers to the node after which the new node should be inserted. Because of the strange skip list data structure there could be several pointers to this node on different levels. offset is an amount of bytes that needs to reserved just before the QMapData::Node structure.
alignment dictates the alignment for the data.
Definition at line 117 of file qmap.cpp.
QMapData* QMapData::forward[QMapData::LastLevel+1] |
Definition at line 70 of file qmap.h.
Referenced by QMap< int, QFrameInfo >::freeData(), and node_delete().
uint QMapData::insertInOrder |
Definition at line 75 of file qmap.h.
Referenced by createData(), and node_create().
uint QMapData::randomBits |
Definition at line 74 of file qmap.h.
Referenced by createData(), node_create(), and node_delete().
QBasicAtomicInt QMapData::ref |
Definition at line 71 of file qmap.h.
Referenced by createData(), node_delete(), and QMap< int, QFrameInfo >::operator=().
uint QMapData::reserved |
Definition at line 78 of file qmap.h.
Referenced by createData().
uint QMapData::sharable |
Definition at line 76 of file qmap.h.
Referenced by createData().
|
static |
int QMapData::size |
Definition at line 73 of file qmap.h.
Referenced by createData(), node_create(), and node_delete().
uint QMapData::strictAlignment |
Definition at line 77 of file qmap.h.
Referenced by continueFreeData(), createData(), node_create(), and node_delete().
int QMapData::topLevel |
Definition at line 72 of file qmap.h.
Referenced by createData(), node_create(), and node_delete().