15 Q_ASSERT(singleProperty >=
static_cast<int>(CPropertyIndexRef::GlobalIndexCValueObject));
45 for (
const int i : m_indexes)
47 Q_ASSERT(i >=
static_cast<int>(CPropertyIndexRef::GlobalIndexCValueObject));
57 if (indexes.
isEmpty()) {
return; }
60 if (index.isEmpty()) {
continue; }
62 int i = index.toInt(&ok);
64 Q_ASSERT(i >=
static_cast<int>(CPropertyIndexRef::GlobalIndexCValueObject));
91 Q_ASSERT_X(!this->
isEmpty(), Q_FUNC_INFO,
"No index");
92 return m_indexes.
front();
97 if (this->
isEmpty()) {
return false; }
Thrown when a convertFromJson method encounters an unrecoverable error in JSON data.
QList< int > indexList() const
Index list.
CPropertyIndex()=default
Default constructor.
bool isEmpty() const
Empty?
void prepend(int newLeftIndex)
Shift existing indexes to right and insert given index at front.
bool isMyself() const
Myself index, used with nesting.
bool startsWith(int index) const
Starts with given index?
int frontToInt() const
Front to integer.
bool contains(int index) const
Contains index?
QJsonObject toJson() const
Cast to JSON object.
QString convertToQString(bool i18n=false) const
Cast as QString.
Q_REQUIRED_RESULT CPropertyIndex copyFrontRemoved() const
Copy with first element removed.
bool isNested() const
Is nested index?
void convertFromJson(const QJsonObject &json)
Assign from JSON object.
void parseFromString(const QString &indexes)
Parse indexes from string.
Non-owning reference to a CPropertyIndex with a subset of its features.
Free functions in swift::misc.
QJsonObject::iterator insert(QLatin1StringView key, const QJsonValue &value)
QJsonValue value(QLatin1StringView key) const const
bool isString() const const
QString toString() const const
void append(QList< T > &&value)
bool contains(const AT &value) const const
QList< T >::reference front()
bool isEmpty() const const
void push_front(QList< T >::parameter_type value)
qsizetype size() const const
QString & append(QChar ch)
bool isEmpty() const const
QString number(double n, char format, int precision)
QStringList split(QChar sep, Qt::SplitBehavior behavior, Qt::CaseSensitivity cs) const const
#define SWIFT_VERIFY_X(COND, WHERE, WHAT)
A weaker kind of assert.