4#ifndef QV4SPARSEARRAY_H
5#define QV4SPARSEARRAY_H
20#include <QtCore/qlist.h>
24#include <QtCore/qdebug.h>
60 if (
p &&
p->right ==
n)
130 void recalcMostLeftNode();
150 QList<int>
keys()
const;
181 if (akey ==
n->size_left) {
183 }
else if (akey < n->size_left) {
186 akey -=
n->size_left;
196 uint idx = UINT_MAX ;
206 rootNode = rootNode->
left;
245inline void SparseArray::dump()
const
249 while (
it !=
end()) {
252 while (
n &&
n != root()) {
258 <<
it->key() <<
it->value;
282 res.append(
n->key());
void reserve(qsizetype size)
cache insert(employee->id(), employee)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
qsizetype erase(QByteArray &ba, const T &t)
static QString header(const QString &name)
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLuint GLfloat GLfloat GLfloat GLfloat GLfloat z
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
static QString dump(const QByteArray &)
SparseArrayNode * copy(SparseArray *d) const
SparseArrayNode * lowerBound(uint key)
const SparseArrayNode * previousNode() const
SparseArrayNode * parent() const
SparseArrayNode * nextNode()
SparseArrayNode * upperBound(uint key)
const SparseArrayNode * nextNode() const
SparseArrayNode * previousNode()
void setParent(SparseArrayNode *pp)
SparseArrayNode * upperBound(uint key)
SparseArrayNode * erase(SparseArrayNode *n)
void push_back(uint at, uint len)
SparseArrayNode * lowerBound(uint key)
const SparseArrayNode * begin() const
SparseArrayNode * insert(uint akey)
QList< int > keys() const
SparseArrayNode * findNode(uint akey) const
SparseArrayNode * begin()
const SparseArrayNode * end() const