#include <subMatrixIterator.hh>
Classes | |
struct | MatrixType |
Non-constant matrix for non-constant iterator. More... | |
struct | MatrixType< F_, const F::type &, const F::type * > |
Constant matrix for constant iterator. More... | |
Public Types | |
typedef std::forward_iterator_tag | iterator_category |
typedef F::type | value_type |
typedef _Ptr | pointer |
typedef _Ref | reference |
typedef size_t | size_type |
typedef ptrdiff_t | difference_type |
typedef _SubMatrix_iterator | _Self |
typedef _Matrix_iterator_base< value_type, _Ref, _Ptr > | _Base |
typedef MatrixType< F, _Ref, _Ptr >::type | matrix_type |
typedef _Base::return_type | return_type |
typedef _SubMatrix_iterator< F, value_type &, value_type * > | iterator |
typedef _SubMatrix_iterator< F, const value_type &, const value_type * > | const_iterator |
Public Member Functions | |
_SubMatrix_iterator (matrix_type &m, uint r=0) | |
_SubMatrix_iterator () | |
Constructor. Iterator stands at the end of any matrix. | |
template<class _RefR , class _PtrR > | |
_SubMatrix_iterator (const _SubMatrix_iterator< F, _RefR, _PtrR > &__x) | |
Copy constructor. Also from iterator to constant iterator. | |
return_type | operator* () const |
Dereferencation. | |
pointer | operator-> () const |
Returns a pointer to the value. | |
template<class _RefR , class _PtrR > | |
_Self & | operator= (const _SubMatrix_iterator< F, _RefR, _PtrR > &__x) |
Assignment. | |
_Self & | operator++ () |
Increment operator. | |
_Self | operator++ (int) |
MatrixType< F, _Ref, _Ptr >::iterator * | i () const |
const MatrixType< F, _Ref, _Ptr >::iterator * | iend () const |
Set< IndexRange >::index_iterator * | iI () const |
const Set< IndexRange >::index_iterator * | lastI () const |
matrix_type * | m () const |
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. | |
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. | |
STL like iterator for sub matrices
F | matrix type |
_Ref | reference type of values |
_Ptr | pointer type to values |
Definition at line 28 of file subMatrixIterator.hh.
typedef _Matrix_iterator_base<value_type, _Ref, _Ptr> concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::_Base |
Definition at line 42 of file subMatrixIterator.hh.
typedef _SubMatrix_iterator concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::_Self |
Definition at line 41 of file subMatrixIterator.hh.
typedef _SubMatrix_iterator<F, const value_type&,const value_type*> concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::const_iterator |
Definition at line 49 of file subMatrixIterator.hh.
typedef ptrdiff_t concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::difference_type |
Definition at line 40 of file subMatrixIterator.hh.
typedef _SubMatrix_iterator<F, value_type&, value_type*> concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::iterator |
Definition at line 47 of file subMatrixIterator.hh.
typedef std::forward_iterator_tag concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::iterator_category |
Definition at line 35 of file subMatrixIterator.hh.
typedef MatrixType<F,_Ref,_Ptr>::type concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::matrix_type |
Definition at line 43 of file subMatrixIterator.hh.
typedef _Ptr concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::pointer |
Definition at line 37 of file subMatrixIterator.hh.
typedef _Ref concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::reference |
Definition at line 38 of file subMatrixIterator.hh.
typedef _Base::return_type concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::return_type |
Definition at line 44 of file subMatrixIterator.hh.
typedef size_t concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::size_type |
Definition at line 39 of file subMatrixIterator.hh.
typedef F::type concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::value_type |
Definition at line 36 of file subMatrixIterator.hh.
concepts::_SubMatrix_iterator< F, _Ref, _Ptr >::_SubMatrix_iterator | ( | matrix_type & | m, |
uint | r = 0 |
||
) |
Constructor
m | matrix |
r | row |
|
inline |
Copy constructor. Also from iterator to constant iterator.
Definition at line 61 of file subMatrixIterator.hh.
|
inlineinherited |
Column.
Definition at line 75 of file matrixIterator.hh.
|
inline |
Definition at line 109 of file subMatrixIterator.hh.
|
inline |
Definition at line 112 of file subMatrixIterator.hh.
|
inline |
Definition at line 115 of file subMatrixIterator.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::_Matrix_iterator_base< F::type, _Ref, _Ptr >.
|
inlineinherited |
Returns true, if iterator is behind the last entry.
Definition at line 77 of file matrixIterator.hh.
|
inline |
Definition at line 116 of file subMatrixIterator.hh.
|
inline |
Definition at line 119 of file subMatrixIterator.hh.
|
inlineinherited |
Number of columns.
Definition at line 71 of file matrixIterator.hh.
|
inlineinherited |
Number of rows.
Definition at line 69 of file matrixIterator.hh.
|
inline |
Dereferencation.
Definition at line 75 of file subMatrixIterator.hh.
|
inline |
Definition at line 103 of file subMatrixIterator.hh.
|
inline |
Returns a pointer to the value.
Definition at line 80 of file subMatrixIterator.hh.
|
inline |
Assignment.
Definition at line 87 of file subMatrixIterator.hh.
|
inlineinherited |
Row.
Definition at line 73 of file matrixIterator.hh.
|
protectedinherited |
Definition at line 93 of file matrixIterator.hh.
|
protectedinherited |
Iterator is behind the last entrance.
Definition at line 95 of file matrixIterator.hh.
|
protectedinherited |
Definition at line 91 of file matrixIterator.hh.
|
protectedinherited |
Number of rows and columns.
Definition at line 91 of file matrixIterator.hh.
|
protectedinherited |
Current row and column.
Definition at line 93 of file matrixIterator.hh.