![]() |
Iterator over the elements of the sparse submatrix. More...
#include <SparseSubmatrix.h>
Public Types | |
typedef std::forward_iterator_tag | IteratorCategory |
The iterator category. | |
typedef SubmatrixElement < MatrixType, IteratorType > | ValueType |
Type of the underlying elements. | |
typedef ValueType | PointerType |
Pointer return type. | |
typedef ValueType | ReferenceType |
Reference return type. | |
typedef ptrdiff_t | DifferenceType |
Difference between two iterators. | |
typedef IteratorCategory | iterator_category |
The iterator category. | |
typedef ValueType | value_type |
Type of the underlying elements. | |
typedef PointerType | pointer |
Pointer return type. | |
typedef ReferenceType | reference |
Reference return type. | |
typedef DifferenceType | difference_type |
Difference between two iterators. | |
Public Member Functions | |
SubmatrixIterator () | |
Default constructor for the SubmatrixIterator class. | |
SubmatrixIterator (IteratorType pos, size_t offset) | |
Constructor for the SubmatrixIterator class. More... | |
template<typename MatrixType2 , typename IteratorType2 > | |
SubmatrixIterator (const SubmatrixIterator< MatrixType2, IteratorType2 > &it) | |
Conversion constructor from different SubmatrixIterator instances. More... | |
SubmatrixIterator & | operator++ () |
Pre-increment operator. More... | |
const SubmatrixIterator | operator++ (int) |
Post-increment operator. More... | |
ReferenceType | operator* () const |
Direct access to the current sparse submatrix element. More... | |
PointerType | operator-> () const |
Direct access to the current sparse submatrix element. More... | |
template<typename MatrixType2 , typename IteratorType2 > | |
bool | operator== (const SubmatrixIterator< MatrixType2, IteratorType2 > &rhs) const |
Equality comparison between two SubmatrixIterator objects. More... | |
template<typename MatrixType2 , typename IteratorType2 > | |
bool | operator!= (const SubmatrixIterator< MatrixType2, IteratorType2 > &rhs) const |
Inequality comparison between two SubmatrixIterator objects. More... | |
DifferenceType | operator- (const SubmatrixIterator &rhs) const |
Calculating the number of elements between two submatrix iterators. More... | |
Private Attributes | |
IteratorType | pos_ |
Iterator to the current sparse element. | |
size_t | offset_ |
The offset of the according row/column of the sparse matrix. | |
Iterator over the elements of the sparse submatrix.
|
inline |
Constructor for the SubmatrixIterator class.
pos | Iterator to the current sparse element. |
offset | The offset within the according row/column of the sparse matrix. |
|
inline |
Conversion constructor from different SubmatrixIterator instances.
it | The submatrix iterator to be copied. |
|
inline |
Inequality comparison between two SubmatrixIterator objects.
rhs | The right-hand side submatrix iterator. |
|
inline |
Direct access to the current sparse submatrix element.
|
inline |
Pre-increment operator.
|
inline |
Post-increment operator.
|
inline |
Calculating the number of elements between two submatrix iterators.
rhs | The right-hand side submatrix iterator. |
|
inline |
Direct access to the current sparse submatrix element.
|
inline |
Equality comparison between two SubmatrixIterator objects.
rhs | The right-hand side submatrix iterator. |