|
dune-common 2.10
|
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. | |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = typename std::remove_const<V>::type |
| using | difference_type = D |
| using | pointer = V* |
| using | reference = R |
| typedef T | DerivedType |
| The type of derived iterator. | |
| typedef V | Value |
| The type of value accessed through the iterator. | |
| typedef V * | Pointer |
| The pointer to the Value. | |
| typedef R | Reference |
| The type of the reference to the values accessed. | |
Public Member Functions | |
| DenseIterator () | |
| DenseIterator (C &cont, SizeType pos) | |
| DenseIterator (const MutableIterator &other) | |
| DenseIterator (const ConstIterator &other) | |
| bool | equals (const MutableIterator &other) const |
| bool | equals (const ConstIterator &other) const |
| R | dereference () const |
| void | increment () |
| void | decrement () |
| R | elementAt (DifferenceType i) const |
| void | advance (DifferenceType n) |
| DifferenceType | distanceTo (DenseIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T >::type > other) const |
| DifferenceType | distanceTo (DenseIterator< typename std::remove_const< C >::type, typename std::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 |
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
|
inherited |
| typedef std::ptrdiff_t Dune::DenseIterator< C, T, R >::DifferenceType |
The type of the difference between two positions.
|
inherited |
|
inherited |
The pointer to the Value.
|
inherited |
|
inherited |
The type of the reference to the values accessed.
|
inherited |
| typedef C::size_type Dune::DenseIterator< C, T, R >::SizeType |
The type to index the underlying container.
|
inherited |
The type of value accessed through the iterator.
|
inherited |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
return index
|
inlineinherited |
Dereferencing operator.
|
inlineinherited |
|
inlineinherited |
Preincrement operator.
|
inlineinherited |
Postincrement operator.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Predecrement operator.
|
inlineinherited |
Postdecrement operator.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Get the element n positions from the current one.
| n | The distance to the element. |