MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Base class for all iterators. More...
#include <mdsIteratorBase.h>
Public Types | |
typedef I | tDerived |
Iterator type. | |
typedef CIteratorTraits< I >::tItem | tItem |
Value (or item) type. | |
Public Member Functions | |
tDerived & | getImpl () |
Returns reference to the iterator implementation. | |
const tDerived & | getImpl () const |
tSize | getSize () const |
Returns number of all items in the container. | |
operator bool () const | |
Returns true if the iterator is valid, i.e. not pointing after the end. | |
tItem & | operator* () const |
Returns reference to the current item. | |
CIteratorBase & | operator++ () |
CIteratorBase | operator++ (int) |
tItem * | operator-> () const |
Returns pointer to the current item. | |
const tItem & | value () const |
Returns the current item. | |
tItem & | valuePtr () const |
Returns pointer to the current item. | |
tItem & | valueRef () const |
Returns reference to the current item. | |
Protected Member Functions | |
CIteratorBase () | |
Default constructor. | |
CIteratorBase (const CIteratorBase &) | |
Copy constructor. | |
CIteratorBase & | operator= (const CIteratorBase &) |
Assignment operator. |
Base class for all iterators.
typedef I mds::base::CIteratorBase< I >::tDerived |
Iterator type.
typedef CIteratorTraits<I>::tItem mds::base::CIteratorBase< I >::tItem |
Value (or item) type.
Reimplemented in mds::base::CSTLIterator< I >.
mds::base::CIteratorBase< I >::CIteratorBase | ( | ) | [protected] |
Default constructor.
mds::base::CIteratorBase< I >::CIteratorBase | ( | const CIteratorBase< I > & | ) | [protected] |
Copy constructor.
tDerived& mds::base::CIteratorBase< I >::getImpl | ( | ) |
Returns reference to the iterator implementation.
const tDerived& mds::base::CIteratorBase< I >::getImpl | ( | ) | const |
tSize mds::base::CIteratorBase< I >::getSize | ( | ) | const |
Returns number of all items in the container.
Reimplemented in mds::math::CSparseMatrixAltIterator< M, T >, mds::base::CSTLIterator< I >, mds::math::CSparseMatrixIterator< M, T >, mds::img::CVolumeIterator< V, T >, mds::math::CMatrixIterator< M, T >, mds::img::CImageIterator< I, T >, and mds::math::CVectorIterator< V, T >.
mds::base::CIteratorBase< I >::operator bool | ( | ) | const |
Returns true if the iterator is valid, i.e. not pointing after the end.
tItem& mds::base::CIteratorBase< I >::operator* | ( | ) | const |
Returns reference to the current item.
CIteratorBase& mds::base::CIteratorBase< I >::operator++ | ( | ) |
CIteratorBase mds::base::CIteratorBase< I >::operator++ | ( | int | ) |
tItem* mds::base::CIteratorBase< I >::operator-> | ( | ) | const |
Returns pointer to the current item.
CIteratorBase& mds::base::CIteratorBase< I >::operator= | ( | const CIteratorBase< I > & | ) | [protected] |
Assignment operator.
const tItem& mds::base::CIteratorBase< I >::value | ( | ) | const |
Returns the current item.
Reimplemented in mds::math::CSparseMatrixAltIterator< M, T >, mds::base::CSTLIterator< I >, mds::math::CSparseMatrixIterator< M, T >, mds::img::CVolumeIterator< V, T >, mds::math::CMatrixIterator< M, T >, mds::img::CImageIterator< I, T >, and mds::math::CVectorIterator< V, T >.
tItem& mds::base::CIteratorBase< I >::valuePtr | ( | ) | const |
Returns pointer to the current item.
Reimplemented in mds::math::CSparseMatrixAltIterator< M, T >, mds::base::CSTLIterator< I >, mds::math::CSparseMatrixIterator< M, T >, mds::img::CVolumeIterator< V, T >, mds::math::CMatrixIterator< M, T >, mds::img::CImageIterator< I, T >, and mds::math::CVectorIterator< V, T >.
tItem& mds::base::CIteratorBase< I >::valueRef | ( | ) | const |
Returns reference to the current item.
Reimplemented in mds::math::CSparseMatrixAltIterator< M, T >, mds::base::CSTLIterator< I >, mds::math::CSparseMatrixIterator< M, T >, mds::img::CVolumeIterator< V, T >, mds::math::CMatrixIterator< M, T >, mds::img::CImageIterator< I, T >, and mds::math::CVectorIterator< V, T >.