Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
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
20class tst_qv4estable;
21
23
24namespace QV4 {
25
27{
28public:
29 ESTable();
30 ~ESTable();
31
32 void markObjects(MarkStack *s, bool isWeakMap);
33 void clear();
34 void set(const Value &k, const Value &v);
35 bool has(const Value &k) const;
36 ReturnedValue get(const Value &k, bool *hasValue = nullptr) const;
37 bool remove(const Value &k);
38 uint size() const;
39 void iterate(uint idx, Value *k, Value *v);
40
41 void removeUnmarkedKeys();
42
43private:
44 friend class ::tst_qv4estable;
45
46 Value *m_keys = nullptr;
47 Value *m_values = nullptr;
48 uint m_size = 0;
49 uint m_capacity = 0;
50};
51
52} // namespace QV4
53
55
56#endif
b clear()
Combined button and popup list for selecting options.
quint64 ReturnedValue
static QDBusError::ErrorType get(const char *name)
GLsizei const GLfloat * v
[13]
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLdouble s
[6]
Definition qopenglext.h:235
#define Q_AUTOTEST_EXPORT
unsigned int uint
Definition qtypes.h:34
QFuture< QSet< QChar > > set
[10]
settings remove("monkey")