![]() |
Qt 6.x
The Qt SDK
|
\inmodule QtCore QBaseIterator forms the common base class for all iterators operating on subclasses of QIterable. More...
#include <qiterable.h>
Public Member Functions | |
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 |
Protected Member Functions | |
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 () |
\inmodule QtCore QBaseIterator forms the common base class for all iterators operating on subclasses of QIterable.
Definition at line 123 of file qiterable.h.
|
protecteddefault |
|
inlineprotected |
Creates a const QBaseIterator from an iterable and an iterator.
Definition at line 131 of file qiterable.h.
|
inlineprotected |
Creates a non-const QBaseIterator from an iterable and an iterator.
Definition at line 135 of file qiterable.h.
|
inlineprotected |
Move-constructs a QBaseIterator from other, preserving its const-ness.
Definition at line 139 of file qiterable.h.
References other().
|
inlineprotected |
Copy-constructs a QBaseIterator from other, preserving its const-ness.
Definition at line 145 of file qiterable.h.
References QBaseIterator< Container >::initIterator(), and other().
|
inlineprotected |
Destroys a QBaseIterator.
Definition at line 151 of file qiterable.h.
References QBaseIterator< Container >::clearIterator().
|
inlineprotected |
Destroys the internal native iterator.
Definition at line 197 of file qiterable.h.
References QBaseIterator< Container >::metaContainer(), and QBaseIterator< Container >::mutableIterable().
Referenced by QBaseIterator< Container >::~QBaseIterator(), QBaseIterator< Container >::operator=(), and QBaseIterator< Container >::operator=().
|
inlineprotected |
Returns a const pointer to the iterable.
Definition at line 179 of file qiterable.h.
References QtPrivate::QConstPreservingPointer< Type, Storage >::constPointer().
Referenced by QBaseIterator< Container >::initIterator(), QBaseIterator< Container >::metaContainer(), QConstIterator< Container >::operator+(), QConstIterator< Container >::operator++(), QConstIterator< Container >::operator-(), and QConstIterator< Container >::operator--().
|
inline |
Returns a const pointer to the internal native iterator.
Definition at line 209 of file qiterable.h.
Referenced by QAssociativeIterator::key(), QAssociativeConstIterator::key(), QConstIterator< Container >::operator!=(), QIterator< Container >::operator!=(), QSequentialConstIterator::operator*(), QConstIterator< Container >::operator-(), QIterator< Container >::operator-(), QConstIterator< Container >::operator==(), QIterator< Container >::operator==(), and QAssociativeConstIterator::value().
|
inlineprotected |
Initializes the internal native iterator by duplicating copy, if given.
Definition at line 184 of file qiterable.h.
References QBaseIterator< Container >::constIterable(), copy(), QBaseIterator< Container >::metaContainer(), and QBaseIterator< Container >::mutableIterable().
Referenced by QBaseIterator< Container >::QBaseIterator(), and QBaseIterator< Container >::operator=().
|
inline |
Returns the meta sequence.
Definition at line 210 of file qiterable.h.
References QBaseIterator< Container >::constIterable().
Referenced by QBaseIterator< Container >::clearIterator(), QBaseIterator< Container >::initIterator(), QAssociativeIterator::key(), QAssociativeConstIterator::key(), QConstIterator< Container >::operator!=(), QIterator< Container >::operator!=(), QAssociativeConstIterator::operator*(), QSequentialConstIterator::operator*(), QIterator< Container >::operator+(), QConstIterator< Container >::operator+(), QIterator< Container >::operator++(), QConstIterator< Container >::operator++(), QIterator< Container >::operator++(), QConstIterator< Container >::operator++(), QIterator< Container >::operator+=(), QConstIterator< Container >::operator+=(), QConstIterator< Container >::operator-(), QIterator< Container >::operator-(), QIterator< Container >::operator-(), QConstIterator< Container >::operator-(), QIterator< Container >::operator--(), QConstIterator< Container >::operator--(), QIterator< Container >::operator--(), QConstIterator< Container >::operator--(), QIterator< Container >::operator-=(), QConstIterator< Container >::operator-=(), QConstIterator< Container >::operator==(), QIterator< Container >::operator==(), QAssociativeIterator::value(), and QAssociativeConstIterator::value().
|
inlineprotected |
Returns a non-const pointer to the iterable, if the original iterable was non-const. Otherwise returns nullptr.
Definition at line 174 of file qiterable.h.
References QtPrivate::QConstPreservingPointer< Type, Storage >::mutablePointer().
Referenced by QBaseIterator< Container >::clearIterator(), QBaseIterator< Container >::initIterator(), QIterator< Container >::operator+(), QIterator< Container >::operator++(), QIterator< Container >::operator-(), and QIterator< Container >::operator--().
|
inline |
Returns a non-const pointer to the internal native iterator.
Definition at line 208 of file qiterable.h.
Referenced by QIterator< Container >::operator++(), QConstIterator< Container >::operator++(), QIterator< Container >::operator++(), QConstIterator< Container >::operator++(), QIterator< Container >::operator+=(), QConstIterator< Container >::operator+=(), QIterator< Container >::operator--(), QConstIterator< Container >::operator--(), QIterator< Container >::operator--(), QConstIterator< Container >::operator--(), QIterator< Container >::operator-=(), and QConstIterator< Container >::operator-=().
|
inlineprotected |
Copy-assigns a QBaseIterator from other, preserving its const-ness.
Definition at line 164 of file qiterable.h.
References QBaseIterator< Container >::clearIterator(), QBaseIterator< Container >::initIterator(), and other().
|
inlineprotected |
Move-assigns a QBaseIterator from other, preserving its const-ness.
Definition at line 153 of file qiterable.h.
References QBaseIterator< Container >::clearIterator(), and other().