MDSTk Libraries
1.1.0
Medical Data Segmentation Toolkit
|
Sparse matrix iterator. More...
#include <mdsSparseMatrixIterator.h>
Public Types | |
enum | { TEMPLATE_PARAMETER_IS_NOT_SPARSE_MATRIX = M::CLASS_SPARSEMATRIX } |
Check that M is a matrix. More... | |
typedef CSparseMatrixIterator < M, T > | tDerived |
Iterator type. | |
typedef T | tElement |
Element type. | |
typedef CIteratorTraits < CSparseMatrixIterator< 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. | |
tSize | col () const |
CSparseMatrixIterator (tMatrix &Matrix) | |
Constructor. | |
tDerived & | getImpl () |
Returns reference to the iterator implementation. | |
const tDerived & | getImpl () const |
tSize | getSize () const |
Returns number of non-dominant values in the matrix. | |
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 the 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. | |
~CSparseMatrixIterator () | |
Destructor. | |
Protected Types | |
typedef tMatrix::InnerIterator | tInnerIterator |
Column iterator. | |
Protected Attributes | |
tInnerIterator | m_InnerIt |
Column iterator. | |
tMatrix & | m_Matrix |
Reference to the matrix. | |
tSize | m_OutIndex |
Iterator position. |
Sparse matrix iterator.
typedef CSparseMatrixIterator< M, T > mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::tDerived [inherited] |
Iterator type.
typedef T mds::math::CSparseMatrixIterator< M, T >::tElement |
Element type.
typedef tMatrix::InnerIterator mds::math::CSparseMatrixIterator< M, T >::tInnerIterator [protected] |
Column iterator.
typedef CIteratorTraits<CSparseMatrixIterator< M, T > >::tItem mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::tItem [inherited] |
Value (or item) type.
typedef M mds::math::CSparseMatrixIterator< M, T >::tMatrix |
Matrix type.
anonymous enum |
mds::math::CSparseMatrixIterator< M, T >::CSparseMatrixIterator | ( | tMatrix & | Matrix | ) |
Constructor.
mds::math::CSparseMatrixIterator< M, T >::~CSparseMatrixIterator | ( | ) |
Destructor.
void mds::math::CSparseMatrixIterator< M, T >::advance | ( | ) |
Moves iterator to the next element.
bool mds::math::CSparseMatrixIterator< M, T >::atEnd | ( | ) | const |
Returns true if the iterator points after the end.
tSize mds::math::CSparseMatrixIterator< M, T >::col | ( | ) | const |
tDerived& mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::getImpl | ( | ) | [inherited] |
Returns reference to the iterator implementation.
const tDerived& mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::getImpl | ( | ) | const [inherited] |
tSize mds::math::CSparseMatrixIterator< M, T >::getSize | ( | ) | const |
Returns number of non-dominant values in the matrix.
Reimplemented from mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >.
mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::operator bool | ( | ) | const [inherited] |
Returns true if the iterator is valid, i.e. not pointing after the end.
tItem& mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::operator* | ( | ) | const [inherited] |
Returns reference to the current item.
CIteratorBase& mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::operator++ | ( | ) | [inherited] |
CIteratorBase mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::operator++ | ( | int | ) | [inherited] |
tItem* mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >::operator-> | ( | ) | const [inherited] |
Returns pointer to the current item.
tSize mds::math::CSparseMatrixIterator< M, T >::row | ( | ) | const |
Returns the current iterator position.
const tElement& mds::math::CSparseMatrixIterator< M, T >::value | ( | ) | const |
Returns the current item.
Reimplemented from mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >.
tElement* mds::math::CSparseMatrixIterator< M, T >::valuePtr | ( | ) | const |
Returns pointer to the current item.
Reimplemented from mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >.
tElement& mds::math::CSparseMatrixIterator< M, T >::valueRef | ( | ) | const |
Returns reference to the current item.
Reimplemented from mds::base::CIteratorBase< CSparseMatrixIterator< M, T > >.
tInnerIterator mds::math::CSparseMatrixIterator< M, T >::m_InnerIt [protected] |
Column iterator.
tMatrix& mds::math::CSparseMatrixIterator< M, T >::m_Matrix [protected] |
Reference to the matrix.
tSize mds::math::CSparseMatrixIterator< M, T >::m_OutIndex [protected] |
Iterator position.