17 : m_begin(indexes.data()), m_sizeOrIndex(indexes.size())
23 if (this->
isEmpty() || !m_begin)
41 Q_ASSERT_X(!this->
isEmpty(), Q_FUNC_INFO,
"No index");
42 return m_begin ? *m_begin : m_sizeOrIndex;
63 auto it = m_begin ? m_begin : &m_sizeOrIndex;
64 auto end = it + (m_begin ? m_sizeOrIndex : 1);
65 for (; it !=
end; ++it)
67 Q_ASSERT(*it >=
static_cast<int>(CPropertyIndexRef::GlobalIndexCValueObject));
bool startsWith(int index) const
Starts with given index?
int frontToInt() const
Front to integer.
Q_REQUIRED_RESULT CPropertyIndexRef copyFrontRemoved() const
Copy with first element removed.
bool isNested() const
Is nested index?
CPropertyIndexRef(int index)
Construct from a single index.
QString toQString(bool i18n=false) const
Cast as QString.
bool isEmpty() const
Empty?
bool isMyself() const
Myself index, used with nesting.
Free functions in swift::misc.
T::const_iterator end(const LockFreeReader< T > &reader)
Non-member begin() and end() for so LockFree containers can be used in ranged for loops.
QString & append(QChar ch)
bool isEmpty() const const
QString number(double n, char format, int precision)
#define SWIFT_VERIFY_X(COND, WHERE, WHAT)
A weaker kind of assert.