Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qv4estable_p.h
Go to the documentation of this file.
1// Copyright (C) 2018 Crimson AS <info@crimson.no>
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4//
5// W A R N I N G
6// -------------
7//
8// This file is not part of the Qt API. It exists purely as an
9// implementation detail. This header file may change from version to
10// version without notice, or even be removed.
11//
12// We mean it.
13//
14
15#ifndef QV4ESTABLE_P_H
16#define QV4ESTABLE_P_H
17
18#include "qv4value_p.h"
19
21
22namespace QV4
23{
24
26{
27public:
28 ESTable();
29 ~ESTable();
30
31 void markObjects(MarkStack *s, bool isWeakMap);
32 void clear();
33 void set(const Value &k, const Value &v);
34 bool has(const Value &k) const;
35 ReturnedValue get(const Value &k, bool *hasValue = nullptr) const;
36 bool remove(const Value &k);
37 uint size() const;
38 void iterate(uint idx, Value *k, Value *v);
39
40 void removeUnmarkedKeys();
41
42private:
43 Value *m_keys = nullptr;
44 Value *m_values = nullptr;
45 uint m_size = 0;
46 uint m_capacity = 0;
47};
48
49}
50
52
53#endif
ReturnedValue get(const Value &k, bool *hasValue=nullptr) const
void iterate(uint idx, Value *k, Value *v)
bool remove(const Value &k)
uint size() const
bool has(const Value &k) const
void markObjects(MarkStack *s, bool isWeakMap)
void removeUnmarkedKeys()
Combined button and popup list for selecting options.
\qmltype Particle \inqmlmodule QtQuick.Particles
quint64 ReturnedValue
GLsizei const GLfloat * v
[13]
GLdouble s
[6]
Definition qopenglext.h:235
unsigned int uint
Definition qtypes.h:29
QFuture< QSet< QChar > > set
[10]