QJsonArray::const_iterator Class
The QJsonArray::const_iterator class is an STL-style const iterator for QJsonArray. More…
| Header | #include <QJsonArray> |
|---|---|
| CMake | target_link_libraries(app PRIVATE Nt::Core) |
| Module | Nt Core C++ Classes |
| Nested in | QJsonArray |
List of all members, including inherited members
Public Types
| typedef | iterator_category |
| typedef | difference_type |
| typedef | value_type |
| typedef | reference |
| typedef | pointer |
Public Functions
| const_iterator() | |
| const_iterator(const QJsonArray *array, qsizetype index) | |
| const_iterator(const iterator &o) | |
| QJsonValueConstRef | operator*() const |
| QJsonRefArrow<QJsonValueConstRef> | operator->() const |
| QJsonValueConstRef | operator[](qsizetype j) const |
| bool | operator==(const const_iterator &o) const |
| bool | operator!=(const const_iterator &o) const |
| bool | operator<(const const_iterator &o) const |
| bool | operator<=(const const_iterator &o) const |
| bool | operator>(const const_iterator &o) const |
| bool | operator>=(const const_iterator &o) const |
| const_iterator & | operator++() |
| const_iterator | operator++(int) |
| const_iterator & | operator--() |
| const_iterator | operator--(int) |
| const_iterator & | operator+=(qsizetype j) |
| const_iterator & | operator-=(qsizetype j) |
| const_iterator | operator+(qsizetype j) const |
| const_iterator | operator-(qsizetype j) const |
| qsizetype | operator-(const const_iterator &o) const |
Detailed Description
A random access iterator over the values of an array. Dereferencing it gives a QJsonValueConstRef.
See also QJsonArray::iterator.
Member Type Documentation
typedef QJsonArray::const_iterator::difference_type
Alias for qsizetype.
typedef QJsonArray::const_iterator::iterator_category
Marks the iterator as a random access iterator.
typedef QJsonArray::const_iterator::pointer
The type operator->() returns.
typedef QJsonArray::const_iterator::reference
Alias for QJsonValueConstRef.
typedef QJsonArray::const_iterator::value_type
Alias for QJsonValue.
Member Function Documentation
QJsonArray::const_iterator::const_iterator()
Creates an iterator that refers to no array.
QJsonArray::const_iterator::const_iterator(const QJsonArray *array, qsizetype index)
Creates an iterator that refers to position index of array.
QJsonArray::const_iterator::const_iterator(const iterator &o)
Creates a const iterator that refers to the position of o.
bool QJsonArray::const_iterator::operator!=(const const_iterator &o) const
Returns true if o refers to another position.
QJsonValueConstRef QJsonArray::const_iterator::operator*() const
Returns a reference to the current value.
const_iterator QJsonArray::const_iterator::operator+(qsizetype j) const
Returns an iterator j values after this one.
const_iterator & QJsonArray::const_iterator::operator++()
Advances the iterator to the next value and returns it.
const_iterator QJsonArray::const_iterator::operator++(int)
This is an overloaded function.
Advances the iterator and returns its previous position.
const_iterator & QJsonArray::const_iterator::operator+=(qsizetype j)
Advances the iterator by j values and returns it.
const_iterator QJsonArray::const_iterator::operator-(qsizetype j) const
This is an overloaded function.
Returns an iterator j values before this one.
qsizetype QJsonArray::const_iterator::operator-(const const_iterator &o) const
This is an overloaded function.
Returns the number of values between o and this iterator.
const_iterator & QJsonArray::const_iterator::operator--()
Moves the iterator to the previous value and returns it.
const_iterator QJsonArray::const_iterator::operator--(int)
This is an overloaded function.
Moves the iterator back and returns its previous position.
const_iterator & QJsonArray::const_iterator::operator-=(qsizetype j)
Moves the iterator back by j values and returns it.
QJsonRefArrow<QJsonValueConstRef> QJsonArray::const_iterator::operator->() const
Returns a pointer-like helper for the current value.
bool QJsonArray::const_iterator::operator<(const const_iterator &o) const
Returns true if this iterator is before o.
bool QJsonArray::const_iterator::operator<=(const const_iterator &o) const
Returns true if this iterator is before or at the same position as o.
bool QJsonArray::const_iterator::operator==(const const_iterator &o) const
Returns true if o refers to the same position.
bool QJsonArray::const_iterator::operator>(const const_iterator &o) const
Returns true if this iterator is after o.
bool QJsonArray::const_iterator::operator>=(const const_iterator &o) const
Returns true if this iterator is after or at the same position as o.
QJsonValueConstRef QJsonArray::const_iterator::operator[](qsizetype j) const
Returns a reference to the value j positions after the current one.