![]() |
Qt 6.x
The Qt SDK
|
#include <qsequentialiterable.h>
Inheritance diagram for QSequentialIterator:
Collaboration diagram for QSequentialIterator:Public Types | |
| using | value_type = QVariant |
| using | reference = QVariantRef< QSequentialIterator > |
| using | pointer = QVariantPointer< QSequentialIterator > |
Public Types inherited from QIterator< QMetaSequence > | |
| using | difference_type = qsizetype |
Public Member Functions | |
| QSequentialIterator (QIterator &&it) | |
| QVariantRef< QSequentialIterator > | operator* () const |
| \typealias QSequentialIterable::const_iterator | |
| QVariantPointer< QSequentialIterator > | operator-> () const |
| Returns the current item, converted to a QVariantPointer. | |
Public Member Functions inherited from QIterator< QMetaSequence > | |
| QIterator (QIterable< QMetaSequence > *iterable, void *iterator) | |
| Creates an iterator from an iterable and a pointer to a native iterator. | |
| bool | operator== (const QIterator &o) const |
Returns true if other points to the same item as this iterator; otherwise returns false. | |
| bool | operator!= (const QIterator &o) const |
Returns true if other points to a different item than this iterator; otherwise returns false. | |
| QIterator & | operator++ () |
The prefix {++} operator ({++it}) advances the iterator to the next item in the container and returns an iterator to the new current item. | |
| QIterator | 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. | |
| QIterator & | operator-- () |
The prefix {–} operator ({–it}) makes the preceding item current and returns an iterator to the new current item. | |
| QIterator | 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. | |
| QIterator & | operator+= (qsizetype j) |
| Advances the iterator by j items. | |
| QIterator & | operator-= (qsizetype j) |
| Makes the iterator go back by j items. | |
| QIterator | operator+ (qsizetype j) const |
| Returns an iterator to the item at j positions forward from this iterator. | |
| QIterator | operator- (qsizetype j) const |
| Returns an iterator to the item at j positions backward from this iterator. | |
| qsizetype | operator- (const QIterator &j) const |
| 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 |
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 () |
Definition at line 12 of file qsequentialiterable.h.
Definition at line 17 of file qsequentialiterable.h.
Definition at line 16 of file qsequentialiterable.h.
Definition at line 15 of file qsequentialiterable.h.
|
inline |
Definition at line 19 of file qsequentialiterable.h.
| QVariantRef< QSequentialIterator > QSequentialIterator::operator* | ( | ) | const |
\typealias QSequentialIterable::const_iterator
The QSequentialIterable::const_iterator allows iteration over a container in a QVariant.
A QSequentialIterable::const_iterator can only be created by a QSequentialIterable instance, and can be used in a way similar to other stl-style iterators.
\typealias QSequentialIterable::iterator
The QSequentialIterable::iterator allows iteration over a container in a QVariant.
A QSequentialIterable::iterator can only be created by a QSequentialIterable instance, and can be used in a way similar to other stl-style iterators.
Returns the current item, converted to a QVariantRef.
Definition at line 184 of file qsequentialiterable.cpp.
| QVariantPointer< QSequentialIterator > QSequentialIterator::operator-> | ( | ) | const |
Returns the current item, converted to a QVariantPointer.
Definition at line 192 of file qsequentialiterable.cpp.