![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
The QConstIterator allows iteration over a container in a QVariant. More...
#include <qiterable.h>
Public Types | |
using | difference_type = qsizetype |
Public Member Functions | |
QConstIterator (const QIterable< Container > *iterable, void *iterator) | |
Creates a QConstIterator to wrap iterator, operating on iterable. | |
bool | operator== (const QConstIterator &o) const |
Returns true if other points to the same item as this iterator; otherwise returns false . | |
bool | operator!= (const QConstIterator &o) const |
Returns true if other points to a different item than this iterator; otherwise returns false . | |
QConstIterator & | operator++ () |
The prefix {++} operator ( {++it}) advances the iterator to the next item in the container and returns an iterator to the new current item. | |
QConstIterator | operator++ (int) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The postfix {++} operator ( {it++}) advances the iterator to the next item in the container and returns an iterator to the previously current item. | |
QConstIterator & | operator-- () |
The prefix {–} operator ( {–it}) makes the preceding item current and returns an iterator to the new current item. | |
QConstIterator | operator-- (int) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The postfix {–} operator ( {it–}) makes the preceding item current and returns an iterator to the previously current item. | |
QConstIterator & | operator+= (qsizetype j) |
Advances the iterator by j items. | |
QConstIterator & | operator-= (qsizetype j) |
Makes the iterator go back by j items. | |
QConstIterator | operator+ (qsizetype j) const |
Returns an iterator to the item at j positions forward from this iterator. | |
QConstIterator | operator- (qsizetype j) const |
Returns an iterator to the item at j positions backward from this iterator. | |
qsizetype | operator- (const QConstIterator &j) const |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the distance between the two iterators. | |
Public Member Functions inherited from QBaseIterator< Container > | |
void * | mutableIterator () |
Returns a non-const pointer to the internal native iterator. | |
const void * | constIterator () const |
Returns a const pointer to the internal native iterator. | |
Container | metaContainer () const |
Friends | |
QConstIterator | operator+ (qsizetype j, const QConstIterator &k) |
Additional Inherited Members | |
Protected Member Functions inherited from QBaseIterator< Container > | |
QBaseIterator ()=default | |
QBaseIterator (const QIterable< Container > *iterable, void *iterator) | |
QBaseIterator (QIterable< Container > *iterable, void *iterator) | |
QBaseIterator (QBaseIterator &&other) | |
QBaseIterator (const QBaseIterator &other) | |
~QBaseIterator () | |
QBaseIterator & | operator= (QBaseIterator &&other) |
QBaseIterator & | operator= (const QBaseIterator &other) |
QIterable< Container > * | mutableIterable () const |
const QIterable< Container > * | constIterable () const |
void | initIterator (const void *copy) |
void | clearIterator () |
The QConstIterator allows iteration over a container in a QVariant.
Definition at line 317 of file qiterable.h.
using QConstIterator< Container >::difference_type = qsizetype |
Definition at line 320 of file qiterable.h.
|
inlineexplicit |
Creates a QConstIterator to wrap iterator, operating on iterable.
Definition at line 322 of file qiterable.h.
|
inline |
Returns true
if other points to a different item than this iterator; otherwise returns false
.
Definition at line 333 of file qiterable.h.
|
inline |
Returns an iterator to the item at j positions forward from this iterator.
Definition at line 383 of file qiterable.h.
|
inline |
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.
Definition at line 339 of file qiterable.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.The postfix {++} operator (
{it++}) advances the iterator to the next item in the container and returns an iterator to the previously current item.
Definition at line 345 of file qiterable.h.
|
inline |
Advances the iterator by j items.
Definition at line 371 of file qiterable.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.Returns the distance between the two iterators.
Definition at line 404 of file qiterable.h.
|
inline |
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.
Definition at line 394 of file qiterable.h.
|
inline |
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.
Definition at line 355 of file qiterable.h.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.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.
Definition at line 361 of file qiterable.h.
|
inline |
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.
Definition at line 377 of file qiterable.h.
|
inline |
Returns true
if other points to the same item as this iterator; otherwise returns false
.
Definition at line 327 of file qiterable.h.
|
friend |
Definition at line 409 of file qiterable.h.