dune-common
2.2.1
|
Generic iterator class for dense vector and matrix implementations. More...
#include <dune/common/densevector.hh>
Public Types | |
typedef std::ptrdiff_t | DifferenceType |
The type of the difference between two positions. | |
typedef C::size_type | SizeType |
The type to index the underlying container. | |
typedef DenseIterator< C, T > | DerivedType |
The type of derived iterator. | |
typedef T | Value |
The type of value accessed through the iterator. | |
typedef T * | Pointer |
The pointer to the Value. | |
typedef T & | Reference |
The type of the reference to the values accessed. |
Public Member Functions | |
DenseIterator () | |
DenseIterator (C &cont, SizeType pos) | |
DenseIterator (const DenseIterator< typename remove_const< C >::type, typename remove_const< T >::type > &other) | |
bool | equals (const DenseIterator< typename remove_const< C >::type, typename remove_const< T >::type > &other) const |
bool | equals (const DenseIterator< const typename remove_const< C >::type, const typename remove_const< T >::type > &other) const |
T & | dereference () const |
void | increment () |
void | decrement () |
T & | elementAt (DifferenceType i) const |
void | advance (DifferenceType n) |
DifferenceType | distanceTo (DenseIterator< const typename remove_const< C >::type, const typename remove_const< T >::type > other) const |
DifferenceType | distanceTo (DenseIterator< typename remove_const< C >::type, typename remove_const< T >::type > other) const |
SizeType | index () const |
return index | |
Reference | operator* () const |
Dereferencing operator. | |
Pointer | operator-> () const |
Reference | operator[] (DifferenceType n) const |
Get the element n positions from the current one. | |
DerivedType & | operator++ () |
Preincrement operator. | |
DerivedType | operator++ (int) |
Postincrement operator. | |
DerivedType & | operator+= (DifferenceType n) |
DerivedType | operator+ (DifferenceType n) const |
DerivedType & | operator-- () |
Predecrement operator. | |
DerivedType | operator-- (int) |
Postdecrement operator. | |
DerivedType & | operator-= (DifferenceType n) |
DerivedType | operator- (DifferenceType n) const |
Friends | |
class | DenseIterator< typename remove_const< C >::type, typename remove_const< T >::type > |
class | DenseIterator< const typename remove_const< C >::type, const typename remove_const< T >::type > |
Generic iterator class for dense vector and matrix implementations.
provides sequential access to DenseVector, FieldVector and FieldMatrix
|
inherited |
The type of derived iterator.
The iterator has to define following functions have to be present:
For an elaborate explanation see the STL Documentation
typedef std::ptrdiff_t Dune::DenseIterator< C, T >::DifferenceType |
The type of the difference between two positions.
|
inherited |
The pointer to the Value.
|
inherited |
The type of the reference to the values accessed.
typedef C::size_type Dune::DenseIterator< C, T >::SizeType |
The type to index the underlying container.
|
inherited |
The type of value accessed through the iterator.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return index
|
inlineinherited |
Dereferencing operator.
|
inlineinherited |
References Dune::DenseIterator< C, T >::advance().
|
inlineinherited |
Preincrement operator.
|
inlineinherited |
Postincrement operator.
References Dune::RandomAccessIteratorFacade< T, V, R, D >::operator++().
|
inlineinherited |
|
inlineinherited |
References Dune::DenseIterator< C, T >::advance().
|
inlineinherited |
Predecrement operator.
|
inlineinherited |
Postdecrement operator.
References Dune::RandomAccessIteratorFacade< T, V, R, D >::operator--().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get the element n positions from the current one.
n | The distance to the element. |
|
friend |
|
friend |