6.0.0-rc4Source

QJsonArray::const_iterator Class

The QJsonArray::const_iterator class is an STL-style const iterator for QJsonArray. More…

Header#include <QJsonArray>
CMaketarget_link_libraries(app PRIVATE Nt::Core)
ModuleNt Core C++ Classes
Nested inQJsonArray

List of all members, including inherited members

Public Types

typedefiterator_category
typedefdifference_type
typedefvalue_type
typedefreference
typedefpointer

Public Functions

const_iterator()
const_iterator(const QJsonArray *array, qsizetype index)
const_iterator(const iterator &o)
QJsonValueConstRefoperator*() const
QJsonRefArrow<QJsonValueConstRef>operator->() const
QJsonValueConstRefoperator[](qsizetype j) const
booloperator==(const const_iterator &o) const
booloperator!=(const const_iterator &o) const
booloperator<(const const_iterator &o) const
booloperator<=(const const_iterator &o) const
booloperator>(const const_iterator &o) const
booloperator>=(const const_iterator &o) const
const_iterator &operator++()
const_iteratoroperator++(int)
const_iterator &operator--()
const_iteratoroperator--(int)
const_iterator &operator+=(qsizetype j)
const_iterator &operator-=(qsizetype j)
const_iteratoroperator+(qsizetype j) const
const_iteratoroperator-(qsizetype j) const
qsizetypeoperator-(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.

[explicit] 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.