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
qv4identifierhash_p.h
Go to the documentation of this file.
1
// Copyright (C) 2016 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
#ifndef QV4IDENTIFIERHASH_P_H
4
#define QV4IDENTIFIERHASH_P_H
5
6
//
7
// W A R N I N G
8
// -------------
9
//
10
// This file is not part of the Qt API. It exists purely as an
11
// implementation detail. This header file may change from version to
12
// version without notice, or even be removed.
13
//
14
// We mean it.
15
//
16
17
#include <
qstring.h
>
18
#include <private/qv4global_p.h>
19
#include <private/qv4propertykey_p.h>
20
21
QT_BEGIN_NAMESPACE
22
23
namespace
QV4
{
24
25
struct
IdentifierHashEntry;
26
struct
IdentifierHashData;
27
struct
Q_QML_EXPORT
IdentifierHash
28
{
29
IdentifierHash
() =
default
;
30
IdentifierHash
(
ExecutionEngine
*
engine
);
31
IdentifierHash
(
const
IdentifierHash
&
other
);
32
~IdentifierHash
();
33
IdentifierHash
&operator=(
const
IdentifierHash
&
other
);
34
35
bool
isEmpty
()
const
{
return
!
d
; }
36
37
int
count
()
const
;
38
39
void
detach();
40
41
void
add
(
const
QString
&
str
,
int
value
);
42
void
add
(
Heap::String
*
str
,
int
value
);
43
44
int
value
(
const
QString
&
str
)
const
;
45
int
value
(
String
*
str
)
const
;
46
QString
findId(
int
value
)
const
;
47
48
private
:
49
inline
IdentifierHashEntry
*addEntry(
PropertyKey
i
);
50
inline
const
IdentifierHashEntry
*lookup(
PropertyKey
identifier)
const
;
51
inline
const
IdentifierHashEntry
*lookup(
const
QString
&
str
)
const
;
52
inline
const
IdentifierHashEntry
*lookup(
String
*
str
)
const
;
53
inline
const
PropertyKey
toIdentifier
(
const
QString
&
str
)
const
;
54
inline
const
PropertyKey
toIdentifier
(
Heap::String
*
str
)
const
;
55
56
IdentifierHashData
*
d
=
nullptr
;
57
};
58
59
}
// namespace QV4
60
61
QT_END_NAMESPACE
62
63
#endif
// QV4_IDENTIFIERHASH_P_H
toIdentifier
static AVMetadataIdentifier toIdentifier(QMediaMetaData::Key key, AVMetadataKeySpace keySpace)
Definition
avfmetadata.mm:116
QString
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition
qstring.h:129
str
QString str
[2]
Definition
doc_src_containers.cpp:177
i
i
[1]
Definition
doc_src_containers.cpp:169
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qstandardpaths_haiku.cpp:21
QT_END_NAMESPACE
Definition
qsharedpointer.cpp:1590
QV4
Definition
qv4debugservice.h:28
value
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
Definition
qeglstreamconvenience_p.h:46
count
GLenum GLenum GLsizei count
Definition
qopengles2ext.h:150
add
static void add(QPainterPath &path, const QWingedEdge &list, int edge, QPathEdge::Traversal traversal)
Definition
qpathclipper.cpp:1274
qstring.h
d
double d
Definition
src_corelib_text_qlocale.cpp:9
other
QSharedPointer< T > other(t)
[5]
engine
QJSEngine engine
[0]
Definition
src_script_qjsvalue.cpp:14
QV4::ExecutionEngine
Definition
qv4engine_p.h:136
QV4::Heap::String
Definition
qv4string_p.h:79
QV4::IdentifierHashData
Definition
qv4identifierhashdata_p.h:32
QV4::IdentifierHashEntry
Definition
qv4identifierhashdata_p.h:26
QV4::IdentifierHash
Definition
qv4identifierhash_p.h:28
QV4::IdentifierHash::isEmpty
bool isEmpty() const
Definition
qv4identifierhash_p.h:35
QV4::IdentifierHash::IdentifierHash
IdentifierHash()=default
QV4::PropertyKey
Definition
qv4propertykey_p.h:29
QV4::String
Definition
qv4string_p.h:158
qtdeclarative
src
qml
jsruntime
qv4identifierhash_p.h
Generated by
1.10.0