Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QBaseIterator< Container > Class Template Reference

\inmodule QtCore QBaseIterator forms the common base class for all iterators operating on subclasses of QIterable. More...

#include <qiterable.h>

Inheritance diagram for QBaseIterator< Container >:
Collaboration diagram for QBaseIterator< Container >:

Public Member Functions

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

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 ()
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

template<class Container>
class QBaseIterator< Container >

\inmodule QtCore QBaseIterator forms the common base class for all iterators operating on subclasses of QIterable.

Definition at line 132 of file qiterable.h.

Constructor & Destructor Documentation

◆ QBaseIterator() [1/5]

template<class Container>
QBaseIterator< Container >::QBaseIterator ( )
protecteddefault

◆ QBaseIterator() [2/5]

template<class Container>
QBaseIterator< Container >::QBaseIterator ( const QIterable< Container > * iterable,
void * iterator )
inlineprotected

Creates a const QBaseIterator from an iterable and an iterator.

Definition at line 140 of file qiterable.h.

References QBaseIterator().

Referenced by QBaseIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QBaseIterator() [3/5]

template<class Container>
QBaseIterator< Container >::QBaseIterator ( QIterable< Container > * iterable,
void * iterator )
inlineprotected

Creates a non-const QBaseIterator from an iterable and an iterator.

Definition at line 144 of file qiterable.h.

References QBaseIterator().

Referenced by QBaseIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QBaseIterator() [4/5]

template<class Container>
QBaseIterator< Container >::QBaseIterator ( QBaseIterator< Container > && other)
inlineprotected

Move-constructs a QBaseIterator from other, preserving its const-ness.

Definition at line 148 of file qiterable.h.

References QBaseIterator().

Referenced by QBaseIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ QBaseIterator() [5/5]

template<class Container>
QBaseIterator< Container >::QBaseIterator ( const QBaseIterator< Container > & other)
inlineprotected

Copy-constructs a QBaseIterator from other, preserving its const-ness.

Definition at line 154 of file qiterable.h.

References QBaseIterator(), and initIterator().

Referenced by QBaseIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~QBaseIterator()

template<class Container>
QBaseIterator< Container >::~QBaseIterator ( )
inlineprotected

Destroys a QBaseIterator.

Definition at line 160 of file qiterable.h.

References clearIterator().

Here is the call graph for this function:

Member Function Documentation

◆ clearIterator()

template<class Container>
void QBaseIterator< Container >::clearIterator ( )
inlineprotected

Destroys the internal native iterator.

Definition at line 206 of file qiterable.h.

References metaContainer(), and mutableIterable().

Referenced by ~QBaseIterator(), operator=(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ constIterable()

template<class Container>
const QIterable< Container > * QBaseIterator< Container >::constIterable ( ) const
inlineprotected

Returns a const pointer to the iterable.

Definition at line 188 of file qiterable.h.

Referenced by initIterator(), and metaContainer().

Here is the caller graph for this function:

◆ constIterator()

template<class Container>
const void * QBaseIterator< Container >::constIterator ( ) const
inline

Returns a const pointer to the internal native iterator.

Definition at line 218 of file qiterable.h.

◆ initIterator()

template<class Container>
void QBaseIterator< Container >::initIterator ( const void * copy)
inlineprotected

Initializes the internal native iterator by duplicating copy, if given.

Definition at line 193 of file qiterable.h.

References constIterable(), metaContainer(), and mutableIterable().

Referenced by QBaseIterator(), and operator=().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ metaContainer()

template<class Container>
Container QBaseIterator< Container >::metaContainer ( ) const
inline

Returns the meta sequence.

Definition at line 219 of file qiterable.h.

References constIterable().

Referenced by clearIterator(), and initIterator().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ mutableIterable()

template<class Container>
QIterable< Container > * QBaseIterator< Container >::mutableIterable ( ) const
inlineprotected

Returns a non-const pointer to the iterable, if the original iterable was non-const. Otherwise returns nullptr.

Definition at line 183 of file qiterable.h.

Referenced by clearIterator(), and initIterator().

Here is the caller graph for this function:

◆ mutableIterator()

template<class Container>
void * QBaseIterator< Container >::mutableIterator ( )
inline

Returns a non-const pointer to the internal native iterator.

Definition at line 217 of file qiterable.h.

◆ operator=() [1/2]

template<class Container>
QBaseIterator & QBaseIterator< Container >::operator= ( const QBaseIterator< Container > & other)
inlineprotected

Copy-assigns a QBaseIterator from other, preserving its const-ness.

Definition at line 173 of file qiterable.h.

References clearIterator(), and initIterator().

Here is the call graph for this function:

◆ operator=() [2/2]

template<class Container>
QBaseIterator & QBaseIterator< Container >::operator= ( QBaseIterator< Container > && other)
inlineprotected

Move-assigns a QBaseIterator from other, preserving its const-ness.

Definition at line 162 of file qiterable.h.

References clearIterator().

Here is the call graph for this function:

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