10#include <QtCore/qcborarray.h>
11#include <QtCore/qcbormap.h>
26 if (revision !=
obj.end()) {
28 if (!extraVersions.
contains(extraVersion))
29 extraVersions.
append(extraVersion);
44 const auto it = std::lower_bound(
t.begin(),
t.end(), qualifiedName,
compare);
53 return tryFindType(
name.mid(2));
57 for (
int j = 0;
j <
end -
i; ++
j) {
62 if (
const QCborMap *found = tryFindType(qualified))
68 return tryFindType(
name);
71void QmlTypesClassDescription::collectSuperClasses(
78 const QCborMap superObject = superValue.toMap();
94void QmlTypesClassDescription::collectInterfaces(
const QCborMap *classDef)
99 auto object =
value.toArray()[0].toMap();
122 for (
const QCborValue &classInfo : classInfos) {
130 collectInterfaces(classDef);
131 collectSuperClasses(classDef,
types, foreign,
TopLevel, defaultRevision);
146 bool isConstructible =
false;
147 for (
const QCborValue &classInfo : classInfos) {
186 value,
types, foreign, defaultRevision, namespaces)) {
191 value,
types, foreign, defaultRevision, namespaces)) {
199 value,
types, foreign, defaultRevision, namespaces)) {
206 foreignTypeName =
value;
224 if (!foreignTypeName.
isEmpty()) {
234 for (
const QCborValue &classInfo : classInfos) {
244 foreignValue,
types, foreign, defaultRevision, namespaces)) {
249 foreignValue,
types, foreign, defaultRevision, namespaces)) {
253 if (foreignValue ==
S_TRUE)
257 foreignValue,
types, foreign, defaultRevision, namespaces)) {
276 collectSuperClasses(classDef,
types, foreign,
mode, defaultRevision);
283 collectInterfaces(classDef);
303 }
else if (isNamespace) {
322 qWarning() <<
"Warning: Refusing to generate non-lowercase name"
QString toString() const
Returns a deep copy of this string view's data as a QString.
constexpr bool isEmpty() const noexcept
Returns whether this string view is empty - that is, whether {size() == 0}.
constexpr QChar front() const
Returns the first character in the string view.
\inmodule QtCore\reentrant
\inmodule QtCore\reentrant
QCborValue value(qint64 key) const
Returns the QCborValue element in this map that corresponds to key key, if there is one.
bool contains(qint64 key) const
Returns true if this map contains a key-value pair identified by key key.
\inmodule QtCore\reentrant
QCborArray toArray() const
bool toBool(bool defaultValue=false) const
Returns the boolean value stored in this QCborValue, if it is of a boolean type.
constexpr bool isLower() const noexcept
Returns true if the character is a lowercase letter, for example category() is Letter_Lowercase.
iterator erase(const_iterator begin, const_iterator end)
qsizetype length() const noexcept
void append(parameter_type t)
const_iterator constEnd() const noexcept
\macro QT_RESTRICTED_CAST_FROM_ASCII
void truncate(qsizetype pos)
Truncates the string at the given position index.
QString & append(QChar c)
static constexpr QTypeRevision fromEncodedVersion(Integer value)
Produces a QTypeRevision from the given value.
constexpr bool isValid() const
Returns true if the major version or the minor version is known, otherwise false.
QSet< QString >::iterator it
static constexpr QLatin1StringView S_REFERENCE
static constexpr QLatin1StringView S_VALUE
static constexpr QLatin1StringView S_NONE
static constexpr QLatin1StringView S_SEQUENCE
bool startsWith(QAnyStringView whole, QAnyStringView part)
QAnyStringView toStringView(const QCborValue &value)
Combined button and popup list for selecting options.
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
GLsizei GLenum GLenum * types
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
static qreal component(const QPointF &point, unsigned int i)
static void collectExtraVersions(const QCborMap *component, QLatin1StringView key, QList< QTypeRevision > &extraVersions)
static void split(QT_FT_Vector *b)
QLatin1StringView QLatin1String
static int compare(quint64 a, quint64 b)
static int toInt(const QChar &qc, int R)
bool contains(const AT &t) const noexcept
void collectLocalAnonymous(const QCborMap *classDef, const QVector< QCborMap > &types, const QVector< QCborMap > &foreign, QTypeRevision defaultRevision)
QAnyStringView parentProp
QList< QAnyStringView > implementsInterfaces
const QCborMap * resolvedClass
QTypeRevision addedInRevision
QList< QAnyStringView > immediateNames
QAnyStringView sequenceValueType
QTypeRevision removedInRevision
QAnyStringView defaultProp
void collect(const QCborMap *classDef, const QVector< QCborMap > &types, const QVector< QCborMap > &foreign, CollectMode mode, QTypeRevision defaultRevision)
QList< QTypeRevision > revisions
QAnyStringView extensionType
bool extensionIsNamespace
QAnyStringView attachedType
QAnyStringView elementName
const QCborMap * collectRelated(QAnyStringView related, const QVector< QCborMap > &types, const QVector< QCborMap > &foreign, QTypeRevision defaultRevision, const QList< QAnyStringView > &namespaces)
QList< QAnyStringView > deferredNames
QAnyStringView accessSemantics
QAnyStringView superClass
static const QCborMap * findType(const QVector< QCborMap > &types, const QVector< QCborMap > &foreign, const QAnyStringView &name, const QList< QAnyStringView > &namespaces)