![]() |
Qt 6.x
The Qt SDK
|
#include <qv4sparsearray_p.h>
Public Types | |
typedef uint | key_type |
typedef int | mapped_type |
typedef qptrdiff | difference_type |
typedef int | size_type |
Public Member Functions | |
SparseArray () | |
~SparseArray () | |
SparseArray (const SparseArray &other) | |
SparseArrayNode * | createNode (uint sl, SparseArrayNode *parent, bool left) |
void | freeTree (SparseArrayNode *root, int alignment) |
SparseArrayNode * | findNode (uint akey) const |
uint | nEntries () const |
uint | pop_front () |
void | push_front (uint at) |
uint | pop_back (uint len) |
void | push_back (uint at, uint len) |
QList< int > | keys () const |
const SparseArrayNode * | end () const |
SparseArrayNode * | end () |
const SparseArrayNode * | begin () const |
SparseArrayNode * | begin () |
SparseArrayNode * | erase (SparseArrayNode *n) |
SparseArrayNode * | lowerBound (uint key) |
const SparseArrayNode * | lowerBound (uint key) const |
SparseArrayNode * | upperBound (uint key) |
const SparseArrayNode * | upperBound (uint key) const |
SparseArrayNode * | insert (uint akey) |
Public Attributes | |
Value | freeList |
Definition at line 109 of file qv4sparsearray_p.h.
Definition at line 168 of file qv4sparsearray_p.h.
typedef uint QV4::SparseArray::key_type |
Definition at line 166 of file qv4sparsearray_p.h.
typedef int QV4::SparseArray::mapped_type |
Definition at line 167 of file qv4sparsearray_p.h.
typedef int QV4::SparseArray::size_type |
Definition at line 169 of file qv4sparsearray_p.h.
SparseArray::SparseArray | ( | ) |
Definition at line 355 of file qv4sparsearray.cpp.
References freeList, QV4::SparseArrayNode::left, QV4::SparseArrayNode::p, and QV4::SparseArrayNode::right.
|
inline |
Definition at line 112 of file qv4sparsearray_p.h.
References header(), and QString::left().
SparseArray::SparseArray | ( | const SparseArray & | other | ) |
Definition at line 365 of file qv4sparsearray.cpp.
References freeList, QV4::SparseArrayNode::left, other(), QV4::SparseArrayNode::p, QV4::SparseArrayNode::right, and QV4::SparseArrayNode::setParent().
|
inline |
Definition at line 155 of file qv4sparsearray_p.h.
|
inline |
Definition at line 154 of file qv4sparsearray_p.h.
Referenced by QV4::ObjectOwnPropertyKeyIterator::next().
SparseArrayNode * SparseArray::createNode | ( | uint | sl, |
SparseArrayNode * | parent, | ||
bool | left | ||
) |
Definition at line 320 of file qv4sparsearray.cpp.
References QV4::SparseArrayNode::left, QV4::SparseArrayNode::p, parent, Q_CHECK_PTR(), qMapAllocate(), QV4::SparseArrayNode::right, QV4::SparseArrayNode::setParent(), QV4::SparseArrayNode::size_left, and QV4::SparseArrayNode::value.
Referenced by insert().
|
inline |
Definition at line 153 of file qv4sparsearray_p.h.
References header().
|
inline |
Definition at line 152 of file qv4sparsearray_p.h.
References header().
Referenced by erase(), insert(), keys(), lowerBound(), lowerBound(), upperBound(), and upperBound().
|
inline |
|
inline |
Definition at line 176 of file qv4sparsearray_p.h.
Referenced by pop_back(), and pop_front().
void SparseArray::freeTree | ( | SparseArrayNode * | root, |
int | alignment | ||
) |
Definition at line 346 of file qv4sparsearray.cpp.
References alignment, freeTree(), QV4::SparseArrayNode::left, qMapDeallocate(), and QV4::SparseArrayNode::right.
Referenced by freeTree().
SparseArrayNode * SparseArray::insert | ( | uint | akey | ) |
Definition at line 377 of file qv4sparsearray.cpp.
References createNode(), and end().
Referenced by push_back(), and push_front().
|
inline |
Definition at line 276 of file qv4sparsearray_p.h.
References end(), and QV4::SparseArrayNode::nextNode().
|
inline |
Definition at line 297 of file qv4sparsearray_p.h.
References end(), and QV4::SparseArrayNode::lowerBound().
Referenced by QV4::ObjectOwnPropertyKeyIterator::next().
|
inline |
Definition at line 288 of file qv4sparsearray_p.h.
References end(), and QV4::SparseArrayNode::lowerBound().
|
inline |
Definition at line 143 of file qv4sparsearray_p.h.
Definition at line 224 of file qv4sparsearray_p.h.
References findNode().
|
inline |
Definition at line 194 of file qv4sparsearray_p.h.
References findNode(), QV4::SparseArrayNode::left, and QV4::SparseArrayNode::size_left.
Definition at line 238 of file qv4sparsearray_p.h.
References insert().
Definition at line 212 of file qv4sparsearray_p.h.
References insert().
|
inline |
Definition at line 315 of file qv4sparsearray_p.h.
References end(), and QV4::SparseArrayNode::upperBound().
|
inline |
Definition at line 306 of file qv4sparsearray_p.h.
References end(), and QV4::SparseArrayNode::upperBound().
Value QV4::SparseArray::freeList |
Definition at line 119 of file qv4sparsearray_p.h.
Referenced by SparseArray(), and SparseArray().