17 : m_begin(indexes.data()), m_sizeOrIndex(indexes.size())
23 if (this->
isEmpty() || !m_begin) {
return -1; }
38 Q_ASSERT_X(!this->
isEmpty(), Q_FUNC_INFO,
"No index");
39 return m_begin ? *m_begin : m_sizeOrIndex;
44 if (this->
isEmpty()) {
return false; }
52 if (this->
isEmpty()) {
return s; }
54 auto it = m_begin ? m_begin : &m_sizeOrIndex;
55 auto end = it + (m_begin ? m_sizeOrIndex : 1);
56 for (; it !=
end; ++it)
58 Q_ASSERT(*it >=
static_cast<int>(CPropertyIndexRef::GlobalIndexCValueObject));
59 if (!s.isEmpty()) { s.append(
";"); }
60 s.append(QString::number(*it));
Non-owning reference to a CPropertyIndex with a subset of its features.
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.
#define SWIFT_VERIFY_X(COND, WHERE, WHAT)
A weaker kind of assert.