#include <matrixIterator.hh>
Classes | |
struct | ReturnType |
struct | ReturnType< const _Tp_ & > |
Public Types | |
typedef _Matrix_iterator_base< _Tp, _Tp &, _Tp * > | iterator |
typedef _Matrix_iterator_base< _Tp, const _Tp &, const _Tp * > | const_iterator |
typedef _Tp | value_type |
typedef _Ptr | pointer |
typedef _Ref | reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef ReturnType< _Ref >::type | return_type |
typedef _Matrix_iterator_base | _Self |
Public Member Functions | |
_Matrix_iterator_base (const unsigned int nofRows, const unsigned int nofCols, const unsigned int r, const unsigned int c) | |
_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) | |
const unsigned int | nofRows () const |
Number of rows. | |
const unsigned int | nofCols () const |
Number of columns. | |
unsigned int | row () const |
Row. | |
unsigned int | col () const |
Column. | |
bool | last () const |
Returns true, if iterator is behind the last entry. | |
_Self & | operator= (const iterator &__x) |
Assignment. | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
const unsigned int | nofRows_ |
Number of rows and columns. | |
const unsigned int | nofCols_ |
unsigned int | row_ |
Current row and column. | |
unsigned int | col_ |
bool | last_ |
Iterator is behind the last entrance. | |
Base class for STL like iterator for matrices
Definition at line 28 of file matrixIterator.hh.
Definition at line 46 of file matrixIterator.hh.
typedef _Matrix_iterator_base<_Tp, const _Tp&, const _Tp*> concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::const_iterator |
Definition at line 31 of file matrixIterator.hh.
Definition at line 44 of file matrixIterator.hh.
typedef _Matrix_iterator_base<_Tp, _Tp&, _Tp*> concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::iterator |
Definition at line 30 of file matrixIterator.hh.
Definition at line 41 of file matrixIterator.hh.
Definition at line 42 of file matrixIterator.hh.
typedef ReturnType<_Ref>::type concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::return_type |
Definition at line 45 of file matrixIterator.hh.
Definition at line 43 of file matrixIterator.hh.
Definition at line 40 of file matrixIterator.hh.
concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >::_Matrix_iterator_base | ( | const unsigned int | nofRows, |
const unsigned int | nofCols, | ||
const unsigned int | r, | ||
const unsigned int | c | ||
) |
Constructor
nofRows | number of rows of the matrix |
nofCols | number of columns of the matrix |
r | row |
c | column |
|
inline |
Copy constructor.
Can copy an iterator to an constant one as well.
Definition at line 64 of file matrixIterator.hh.
Column.
Definition at line 75 of file matrixIterator.hh.
|
protectedvirtual |
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 118 of file matrixIterator.hh.
|
inline |
Returns true, if iterator is behind the last entry.
Definition at line 77 of file matrixIterator.hh.
Number of columns.
Definition at line 71 of file matrixIterator.hh.
Number of rows.
Definition at line 69 of file matrixIterator.hh.
|
inline |
Assignment.
Definition at line 80 of file matrixIterator.hh.
Row.
Definition at line 73 of file matrixIterator.hh.
Definition at line 93 of file matrixIterator.hh.
|
protected |
Iterator is behind the last entrance.
Definition at line 95 of file matrixIterator.hh.
Definition at line 91 of file matrixIterator.hh.
Number of rows and columns.
Definition at line 91 of file matrixIterator.hh.
Current row and column.
Definition at line 93 of file matrixIterator.hh.