concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr > Class Template Reference
STL like iterator for hashed sparse matrices. More...
#include <hashedSMatrixIterator.hh>
Classes | |
struct | MatrixType |
Non-constant matrix for non-constant iterator. More... | |
struct | MatrixType< _Tp_, const _Tp_ &, const _Tp_ * > |
Constant matrix for constant iterator. More... | |
Public Types | |
typedef _Matrix_iterator_base< _Tp, _Ref, _Ptr > | _Base |
typedef _HashedSMatrix_iterator | _Self |
typedef _HashedSMatrix_iterator< _Tp, const _Tp &, const _Tp * > | const_iterator |
typedef ptrdiff_t | difference_type |
typedef _HashedSMatrix_iterator< _Tp, _Tp &, _Tp * > | iterator |
typedef std::forward_iterator_tag | iterator_category |
typedef MatrixType< _Tp, _Ref, _Ptr >::type | matrix_type |
typedef _Ptr | pointer |
typedef _Ref | reference |
typedef _Base::return_type | return_type |
typedef size_t | size_type |
typedef _Tp | value_type |
Public Member Functions | |
_HashedSMatrix_iterator () | |
Constructor. Iterator stands at the end of any matrix. More... | |
template<class _RefR , class _PtrR > | |
_HashedSMatrix_iterator (const _HashedSMatrix_iterator< _Tp, _RefR, _PtrR > &__x) | |
Copy constructor. Also from iterator to constant iterator. More... | |
_HashedSMatrix_iterator (matrix_type &m, const unsigned int r=0) | |
Constructor. More... | |
unsigned int | col () const |
Column. More... | |
int | hashBits () const |
bool | last () const |
Returns true, if iterator is behind the last entry. More... | |
const unsigned int | nofCols () const |
Number of columns. More... | |
int | nofPages () const |
const unsigned int | nofRows () const |
Number of rows. More... | |
reference | operator* () const |
Dereferencation. More... | |
_Self & | operator++ () |
Pre-increment operator. More... | |
_Self | operator++ (int) |
Post-increment operator. More... | |
pointer | operator-> () const |
Returns a pointer to the value. More... | |
template<class _RefR , class _PtrR > | |
_Self & | operator= (const _HashedSMatrix_iterator< _Tp, _RefR, _PtrR > &__x) |
Assignment. More... | |
int | p () const |
HashedSparseMatrix< _Tp >::Value ** | page () const |
int | pNextRow () const |
_Self | post_increment () |
Post-increment operator, exportable to Python. More... | |
int | pPerRow () const |
_Self | pre_increment () |
Pre-increment operator, exportable to Python. More... | |
unsigned int | row () const |
Row. More... | |
HashedSparseMatrix< _Tp >::Value * | v () const |
Data defining the position of the iterator. More... | |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Protected Attributes | |
unsigned int | col_ |
bool | last_ |
Iterator is behind the last entrance. More... | |
const unsigned int | nofCols_ |
const unsigned int | nofRows_ |
Number of rows and columns. More... | |
unsigned int | row_ |
Current row and column. More... | |
Private Attributes | |
int | hashBits_ |
Hash bits, number of pages per row (2 ^ hash bits), number of pages. More... | |
int | nofPages_ |
int | p_ |
Current page number, first page number of next row. More... | |
HashedSparseMatrix< _Tp >::Value ** | page_ |
Pointer to the first entrance in the page. More... | |
int | pNextRow_ |
int | pPerRow_ |
HashedSparseMatrix< _Tp >::Value * | v_ |
Pointer to the current entrance. If its zero, the end is reached. More... | |
Detailed Description
template<class _Tp, class _Ref, class _Ptr>
class concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >
STL like iterator for hashed sparse matrices.
Definition at line 28 of file hashedSMatrixIterator.hh.
Member Typedef Documentation
◆ _Base
typedef _Matrix_iterator_base<_Tp, _Ref, _Ptr> concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::_Base |
Definition at line 44 of file hashedSMatrixIterator.hh.
◆ _Self
typedef _HashedSMatrix_iterator concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::_Self |
Definition at line 43 of file hashedSMatrixIterator.hh.
◆ const_iterator
typedef _HashedSMatrix_iterator<_Tp, const _Tp&,const _Tp*> concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::const_iterator |
Definition at line 32 of file hashedSMatrixIterator.hh.
◆ difference_type
typedef ptrdiff_t concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::difference_type |
Definition at line 42 of file hashedSMatrixIterator.hh.
◆ iterator
typedef _HashedSMatrix_iterator<_Tp, _Tp&, _Tp*> concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::iterator |
Definition at line 31 of file hashedSMatrixIterator.hh.
◆ iterator_category
typedef std::forward_iterator_tag concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::iterator_category |
Definition at line 37 of file hashedSMatrixIterator.hh.
◆ matrix_type
typedef MatrixType<_Tp, _Ref, _Ptr>::type concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::matrix_type |
Definition at line 45 of file hashedSMatrixIterator.hh.
◆ pointer
typedef _Ptr concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::pointer |
Definition at line 39 of file hashedSMatrixIterator.hh.
◆ reference
typedef _Ref concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::reference |
Definition at line 40 of file hashedSMatrixIterator.hh.
◆ return_type
typedef _Base::return_type concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::return_type |
Definition at line 46 of file hashedSMatrixIterator.hh.
◆ size_type
typedef size_t concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::size_type |
Definition at line 41 of file hashedSMatrixIterator.hh.
◆ value_type
typedef _Tp concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::value_type |
Definition at line 38 of file hashedSMatrixIterator.hh.
Constructor & Destructor Documentation
◆ _HashedSMatrix_iterator() [1/3]
concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::_HashedSMatrix_iterator | ( | matrix_type & | m, |
const unsigned int | r = 0 |
||
) |
Constructor.
- Parameters
-
m matrix r row
◆ _HashedSMatrix_iterator() [2/3]
concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::_HashedSMatrix_iterator | ( | ) |
Constructor. Iterator stands at the end of any matrix.
◆ _HashedSMatrix_iterator() [3/3]
|
inline |
Copy constructor. Also from iterator to constant iterator.
Definition at line 58 of file hashedSMatrixIterator.hh.
Member Function Documentation
◆ col()
|
inlineinherited |
Column.
Definition at line 75 of file matrixIterator.hh.
◆ hashBits()
|
inline |
Definition at line 99 of file hashedSMatrixIterator.hh.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::_Matrix_iterator_base< _Tp, _Ref, _Ptr >.
◆ last()
|
inlineinherited |
Returns true, if iterator is behind the last entry.
Definition at line 77 of file matrixIterator.hh.
◆ nofCols()
|
inlineinherited |
Number of columns.
Definition at line 71 of file matrixIterator.hh.
◆ nofPages()
|
inline |
Definition at line 101 of file hashedSMatrixIterator.hh.
◆ nofRows()
|
inlineinherited |
Number of rows.
Definition at line 69 of file matrixIterator.hh.
◆ operator*()
|
inline |
Dereferencation.
Definition at line 67 of file hashedSMatrixIterator.hh.
◆ operator++() [1/2]
_Self& concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::operator++ | ( | ) |
Pre-increment operator.
◆ operator++() [2/2]
_Self concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::operator++ | ( | int | ) |
Post-increment operator.
◆ operator->()
|
inline |
Returns a pointer to the value.
Definition at line 72 of file hashedSMatrixIterator.hh.
◆ operator=()
|
inline |
Assignment.
Definition at line 79 of file hashedSMatrixIterator.hh.
◆ p()
|
inline |
Definition at line 102 of file hashedSMatrixIterator.hh.
◆ page()
|
inline |
Definition at line 104 of file hashedSMatrixIterator.hh.
◆ pNextRow()
|
inline |
Definition at line 103 of file hashedSMatrixIterator.hh.
◆ post_increment()
_Self concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::post_increment | ( | ) |
Post-increment operator, exportable to Python.
◆ pPerRow()
|
inline |
Definition at line 100 of file hashedSMatrixIterator.hh.
◆ pre_increment()
_Self concepts::_HashedSMatrix_iterator< _Tp, _Ref, _Ptr >::pre_increment | ( | ) |
Pre-increment operator, exportable to Python.
◆ row()
|
inlineinherited |
Row.
Definition at line 73 of file matrixIterator.hh.
◆ v()
|
inline |
Data defining the position of the iterator.
Definition at line 98 of file hashedSMatrixIterator.hh.
Member Data Documentation
◆ col_
|
protectedinherited |
Definition at line 93 of file matrixIterator.hh.
◆ hashBits_
|
private |
Hash bits, number of pages per row (2 ^ hash bits), number of pages.
Definition at line 111 of file hashedSMatrixIterator.hh.
◆ last_
|
protectedinherited |
Iterator is behind the last entrance.
Definition at line 95 of file matrixIterator.hh.
◆ nofCols_
|
protectedinherited |
Definition at line 91 of file matrixIterator.hh.
◆ nofPages_
|
private |
Definition at line 111 of file hashedSMatrixIterator.hh.
◆ nofRows_
|
protectedinherited |
Number of rows and columns.
Definition at line 91 of file matrixIterator.hh.
◆ p_
|
private |
Current page number, first page number of next row.
Definition at line 113 of file hashedSMatrixIterator.hh.
◆ page_
|
private |
Pointer to the first entrance in the page.
Definition at line 115 of file hashedSMatrixIterator.hh.
◆ pNextRow_
|
private |
Definition at line 113 of file hashedSMatrixIterator.hh.
◆ pPerRow_
|
private |
Definition at line 111 of file hashedSMatrixIterator.hh.
◆ row_
|
protectedinherited |
Current row and column.
Definition at line 93 of file matrixIterator.hh.
◆ v_
|
private |
Pointer to the current entrance. If its zero, the end is reached.
Definition at line 109 of file hashedSMatrixIterator.hh.
The documentation for this class was generated from the following file:
- operator/hashedSMatrixIterator.hh