Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
QSequentialConstIterator Class Reference

#include <qsequentialiterable.h>

+ Inheritance diagram for QSequentialConstIterator:
+ Collaboration diagram for QSequentialConstIterator:

Public Types

using value_type = QVariant
 
using reference = const QVariant &
 
using pointer = QVariantConstPointer
 
- Public Types inherited from QConstIterator< QMetaSequence >
using difference_type
 

Public Member Functions

 QSequentialConstIterator (QConstIterator &&it)
 
QVariant operator* () const
 Returns the current item, converted to a QVariant.
 
QVariantConstPointer operator-> () const
 Returns the current item, converted to a QVariantConstPointer.
 
- Public Member Functions inherited from QConstIterator< QMetaSequence >
 QConstIterator (const QIterable< QMetaSequence > *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.
 
QConstIteratoroperator++ ()
 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.
 
QConstIteratoroperator-- ()
 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.
 
QConstIteratoroperator+= (qsizetype j)
 Advances the iterator by j items.
 
QConstIteratoroperator-= (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 >
voidmutableIterator ()
 Returns a non-const pointer to the internal native iterator.
 
const voidconstIterator () 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 ()
 
QBaseIteratoroperator= (QBaseIterator &&other)
 
QBaseIteratoroperator= (const QBaseIterator &other)
 
QIterable< Container > * mutableIterable () const
 
const QIterable< Container > * constIterable () const
 
void initIterator (const void *copy)
 
void clearIterator ()
 

Detailed Description

Definition at line 27 of file qsequentialiterable.h.

Member Typedef Documentation

◆ pointer

◆ reference

Definition at line 31 of file qsequentialiterable.h.

◆ value_type

Constructor & Destructor Documentation

◆ QSequentialConstIterator()

QSequentialConstIterator::QSequentialConstIterator ( QConstIterator && it)
inline

Definition at line 34 of file qsequentialiterable.h.

Member Function Documentation

◆ operator*()

QVariant QSequentialConstIterator::operator* ( ) const

Returns the current item, converted to a QVariant.

Definition at line 200 of file qsequentialiterable.cpp.

References QBaseIterator< Container >::constIterator(), QBaseIterator< Container >::metaContainer(), and QIterablePrivate::retrieveElement().

+ Here is the call graph for this function:

◆ operator->()

QVariantConstPointer QSequentialConstIterator::operator-> ( ) const

Returns the current item, converted to a QVariantConstPointer.

Definition at line 210 of file qsequentialiterable.cpp.


The documentation for this class was generated from the following files: