The QConstIterator allows iteration over a container in a QVariant. More...
Header: | #include <QConstIterator> |
CMake: | find_package(Qt6 COMPONENTS Core REQUIRED) target_link_libraries(mytarget PRIVATE Qt6::Core) |
qmake: | QT += core |
Since: | Qt 6.0 |
Inherits: | QBaseIterator |
QConstIterator(const QIterable<Container> *iterable, void *iterator) | |
bool | operator!=(const QConstIterator<Container> &other) const |
QConstIterator<Container> | operator+(qsizetype j) const |
QConstIterator<Container> & | operator++() |
QConstIterator<Container> | operator++(int) |
QConstIterator<Container> & | operator+=(qsizetype j) |
QConstIterator<Container> | operator-(qsizetype j) const |
qsizetype | operator-(const QConstIterator<Container> &j) const |
QConstIterator<Container> & | operator--() |
QConstIterator<Container> | operator--(int) |
QConstIterator<Container> & | operator-=(qsizetype j) |
bool | operator==(const QConstIterator<Container> &other) const |
See also QIterator and QIterable.
Creates a QConstIterator to wrap iterator, operating on iterable.
Returns true
if other points to a different item than this iterator; otherwise returns false
.
See also operator==().
Returns an iterator to the item at j positions forward from this iterator.
See also operator-() and operator+=().
The prefix ++ operator (++it
) advances the iterator to the next item in the container and returns an iterator to the new current item.
Calling this function on QIterable<Container>::end() leads to undefined results.
See also operator--().
This is an overloaded function.
The postfix ++ operator (it++
) advances the iterator to the next item in the container and returns an iterator to the previously current item.
Advances the iterator by j items.
See also operator-=() and operator+().
Returns an iterator to the item at j positions backward from this iterator.
If the container in the QVariant does not support bi-directional iteration, calling this function leads to undefined results.
See also operator+(), operator-=(), and QIterable::canReverseIterate().
Returns the distance between the two iterators.
See also operator+(), operator-=(), and QIterable::canReverseIterate().
The prefix -- operator (--it
) makes the preceding item current and returns an iterator to the new current item.
Calling this function on QIterable<Container>::begin() leads to undefined results.
If the container in the QVariant does not support bi-directional iteration, calling this function leads to undefined results.
See also operator++() and QIterable::canReverseIterate().
This is an overloaded function.
The postfix -- operator (it--
) makes the preceding item current and returns an iterator to the previously current item.
If the container in the QVariant does not support bi-directional iteration, calling this function leads to undefined results.
See also QIterable::canReverseIterate().
Makes the iterator go back by j items.
If the container in the QVariant does not support bi-directional iteration, calling this function leads to undefined results.
See also operator+=(), operator-(), and QIterable::canReverseIterate().
Returns true
if other points to the same item as this iterator; otherwise returns false
.
See also operator!=().
© The Qt Company Ltd
Licensed under the GNU Free Documentation License, Version 1.3.
https://doc.qt.io/qt-6.2/qconstiterator.html