Base class for STL like iterator for matrices. More...
#include <matrixIterator.hh>


Classes | |
| struct | ReturnType |
| Return type for derefencation is reference for non-constant iterator. More... | |
| struct | ReturnType< const _Tp_ & > |
| Return type for derefencation is constant copy for constant iterator. More... | |
Public Types | |
| typedef _Matrix_iterator_base | _Self |
| typedef _Matrix_iterator_base < _Tp, const _Tp &, const _Tp * > | const_iterator |
| typedef ptrdiff_t | difference_type |
| typedef _Matrix_iterator_base < _Tp, _Tp &, _Tp * > | iterator |
| typedef _Ptr | pointer |
| typedef _Ref | reference |
| typedef ReturnType< _Ref >::type | return_type |
| typedef size_t | size_type |
| typedef _Tp | value_type |
Public Member Functions | |
| _Matrix_iterator_base (const uint nofRows, const uint nofCols, const uint r, const uint c) | |
| Constructor. | |
| _Matrix_iterator_base () | |
| Constructor. Iterator stands at the end of any matrix. | |
| template<class _RefR , class _PtrR > | |
| _Matrix_iterator_base (const _Matrix_iterator_base< _Tp, _RefR, _PtrR > &__x) | |
| Copy constructor. | |
| uint | col () const |
| Column. | |
| bool | last () const |
| Returns true, if iterator is behind the last entry. | |
| const uint | nofCols () const |
| Number of columns. | |
| const uint | nofRows () const |
| Number of rows. | |
| _Self & | operator= (const iterator &__x) |
| Assignment. | |
| uint | row () const |
| Row. | |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Protected Attributes | |
| uint | col_ |
| bool | last_ |
| Iterator is behind the last entrance. | |
| const uint | nofCols_ |
| const uint | nofRows_ |
| Number of rows and columns. | |
| uint | row_ |
| Current row and column. | |
Base class for STL like iterator for matrices.
Definition at line 26 of file matrixIterator.hh.
| typedef _Matrix_iterator_base concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::_Self |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 44 of file matrixIterator.hh.
| typedef _Matrix_iterator_base<_Tp, const _Tp&, const _Tp*> concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::const_iterator |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 29 of file matrixIterator.hh.
| typedef ptrdiff_t concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::difference_type |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 42 of file matrixIterator.hh.
| typedef _Matrix_iterator_base<_Tp, _Tp&, _Tp*> concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::iterator |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 28 of file matrixIterator.hh.
| typedef _Ptr concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::pointer |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 39 of file matrixIterator.hh.
| typedef _Ref concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::reference |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 40 of file matrixIterator.hh.
| typedef ReturnType<_Ref>::type concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::return_type |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 43 of file matrixIterator.hh.
| typedef size_t concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::size_type |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 41 of file matrixIterator.hh.
| typedef _Tp concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::value_type |
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 36 of file matrixIterator.hh.
| concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::_Matrix_iterator_base | ( | const uint | nofRows, |
| const uint | nofCols, | ||
| const uint | r, | ||
| const uint | c | ||
| ) |
Constructor.
| nofRows | number of rows of the matrix |
| nofCols | number of columns of the matrix |
| r | row |
| c | column |
| concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::_Matrix_iterator_base | ( | ) |
Constructor. Iterator stands at the end of any matrix.
| concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::_Matrix_iterator_base | ( | const _Matrix_iterator_base< _Tp, _RefR, _PtrR > & | __x | ) | [inline] |
Copy constructor.
Can copy an iterator to an constant one as well.
Definition at line 62 of file matrixIterator.hh.
| uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::col | ( | ) | const [inline] |
Column.
Definition at line 73 of file matrixIterator.hh.
| std::ostream & concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
Reimplemented in concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >, concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >, and concepts::_SubMatrix_iterator< F, _Ref, _Ptr >.
Definition at line 116 of file matrixIterator.hh.
| bool concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::last | ( | ) | const [inline] |
Returns true, if iterator is behind the last entry.
Definition at line 75 of file matrixIterator.hh.
| const uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::nofCols | ( | ) | const [inline] |
Number of columns.
Definition at line 69 of file matrixIterator.hh.
| const uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::nofRows | ( | ) | const [inline] |
Number of rows.
Definition at line 67 of file matrixIterator.hh.
| _Self& concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::operator= | ( | const iterator & | __x | ) | [inline] |
Assignment.
Reimplemented in concepts::_Matrix_iterator< _Tp, _Ref, _Ptr >.
Definition at line 78 of file matrixIterator.hh.
| uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::row | ( | ) | const [inline] |
Row.
Definition at line 71 of file matrixIterator.hh.
uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::col_ [protected] |
Definition at line 91 of file matrixIterator.hh.
bool concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::last_ [protected] |
Iterator is behind the last entrance.
Definition at line 93 of file matrixIterator.hh.
const uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::nofCols_ [protected] |
Definition at line 89 of file matrixIterator.hh.
const uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::nofRows_ [protected] |
Number of rows and columns.
Definition at line 89 of file matrixIterator.hh.
uint concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::row_ [protected] |
Current row and column.
Definition at line 91 of file matrixIterator.hh.