MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Iterator used to traverse matrix elements by rows. More...
#include <mdsMatrixIterator.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_MATRIX = M::CLASS_MATRIX } |
Check that M is a matrix. More... | |
typedef CMatrixIterator< M, T > | tDerived |
Iterator type. | |
typedef T | tElement |
Element type. | |
typedef CIteratorTraits < CMatrixIterator< M, T > >::tItem | tItem |
Value (or item) type. | |
typedef M | tMatrix |
Matrix type. | |
Public Member Functions | |
void | advance () |
Moves iterator to the next element. | |
bool | atEnd () const |
Returns true if the iterator points after the end. | |
CMatrixIterator (tMatrix &Matrix) | |
Constructor. | |
tSize | col () const |
tDerived & | getImpl () |
Returns reference to the iterator implementation. | |
const tDerived & | getImpl () const |
tSize | getSize () const |
Returns size of the volume in voxels. | |
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. | |
tSize | row () const |
Returns current iterator position. | |
const tElement & | value () const |
Returns the current item. | |
tElement * | valuePtr () const |
Returns pointer to the current item. | |
tElement & | valueRef () const |
Returns reference to the current item. | |
~CMatrixIterator () | |
Destructor. | |
Protected Attributes | |
tSize | m_Col |
tMatrix & | m_Matrix |
Reference to the matrix. | |
tSize | m_Row |
Iterator position. |
Iterator used to traverse matrix elements by rows.
typedef CMatrixIterator< M, T > mds::base::CIteratorBase< CMatrixIterator< M, T > >::tDerived [inherited] |
Iterator type.
typedef T mds::math::CMatrixIterator< M, T >::tElement |
Element type.
typedef CIteratorTraits<CMatrixIterator< M, T > >::tItem mds::base::CIteratorBase< CMatrixIterator< M, T > >::tItem [inherited] |
Value (or item) type.
typedef M mds::math::CMatrixIterator< M, T >::tMatrix |
Matrix type.
anonymous enum |
mds::math::CMatrixIterator< M, T >::CMatrixIterator | ( | tMatrix & | Matrix | ) |
Constructor.
mds::math::CMatrixIterator< M, T >::~CMatrixIterator | ( | ) |
Destructor.
void mds::math::CMatrixIterator< M, T >::advance | ( | ) |
Moves iterator to the next element.
bool mds::math::CMatrixIterator< M, T >::atEnd | ( | ) | const |
Returns true if the iterator points after the end.
tSize mds::math::CMatrixIterator< M, T >::col | ( | ) | const |
tDerived& mds::base::CIteratorBase< CMatrixIterator< M, T > >::getImpl | ( | ) | [inherited] |
Returns reference to the iterator implementation.
const tDerived& mds::base::CIteratorBase< CMatrixIterator< M, T > >::getImpl | ( | ) | const [inherited] |
tSize mds::math::CMatrixIterator< M, T >::getSize | ( | ) | const |
Returns size of the volume in voxels.
Reimplemented from mds::base::CIteratorBase< CMatrixIterator< M, T > >.
mds::base::CIteratorBase< CMatrixIterator< M, T > >::operator bool | ( | ) | const [inherited] |
Returns true if the iterator is valid, i.e. not pointing after the end.
tItem& mds::base::CIteratorBase< CMatrixIterator< M, T > >::operator* | ( | ) | const [inherited] |
Returns reference to the current item.
CIteratorBase& mds::base::CIteratorBase< CMatrixIterator< M, T > >::operator++ | ( | ) | [inherited] |
CIteratorBase mds::base::CIteratorBase< CMatrixIterator< M, T > >::operator++ | ( | int | ) | [inherited] |
tItem* mds::base::CIteratorBase< CMatrixIterator< M, T > >::operator-> | ( | ) | const [inherited] |
Returns pointer to the current item.
tSize mds::math::CMatrixIterator< M, T >::row | ( | ) | const |
Returns current iterator position.
const tElement& mds::math::CMatrixIterator< M, T >::value | ( | ) | const |
Returns the current item.
Reimplemented from mds::base::CIteratorBase< CMatrixIterator< M, T > >.
tElement* mds::math::CMatrixIterator< M, T >::valuePtr | ( | ) | const |
Returns pointer to the current item.
Reimplemented from mds::base::CIteratorBase< CMatrixIterator< M, T > >.
tElement& mds::math::CMatrixIterator< M, T >::valueRef | ( | ) | const |
Returns reference to the current item.
Reimplemented from mds::base::CIteratorBase< CMatrixIterator< M, T > >.
tSize mds::math::CMatrixIterator< M, T >::m_Col [protected] |
tMatrix& mds::math::CMatrixIterator< M, T >::m_Matrix [protected] |
Reference to the matrix.
tSize mds::math::CMatrixIterator< M, T >::m_Row [protected] |
Iterator position.