dune-common
2.4
|
Base class for stl conformant forward iterators. More...
#include <dune/common/iteratorfacades.hh>
Public Types | |
typedef T | DerivedType |
The type of derived iterator. More... | |
typedef V | Value |
The type of value accessed through the iterator. More... | |
typedef V * | Pointer |
The pointer to the Value. More... | |
typedef D | DifferenceType |
The type of the difference between two positions. More... | |
typedef R | Reference |
The type of the reference to the values accessed. More... | |
Public Member Functions | |
Reference | operator* () const |
Dereferencing operator. More... | |
Pointer | operator-> () const |
Reference | operator[] (DifferenceType n) const |
Get the element n positions from the current one. More... | |
DerivedType & | operator++ () |
Preincrement operator. More... | |
DerivedType | operator++ (int) |
Postincrement operator. More... | |
DerivedType & | operator+= (DifferenceType n) |
DerivedType | operator+ (DifferenceType n) const |
DerivedType & | operator-- () |
Predecrement operator. More... | |
DerivedType | operator-- (int) |
Postdecrement operator. More... | |
DerivedType & | operator-= (DifferenceType n) |
DerivedType | operator- (DifferenceType n) const |
Base class for stl conformant forward iterators.
typedef T Dune::RandomAccessIteratorFacade< T, V, R, D >::DerivedType |
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 D Dune::RandomAccessIteratorFacade< T, V, R, D >::DifferenceType |
The type of the difference between two positions.
typedef V* Dune::RandomAccessIteratorFacade< T, V, R, D >::Pointer |
The pointer to the Value.
typedef R Dune::RandomAccessIteratorFacade< T, V, R, D >::Reference |
The type of the reference to the values accessed.
typedef V Dune::RandomAccessIteratorFacade< T, V, R, D >::Value |
The type of value accessed through the iterator.
|
inline |
Dereferencing operator.
|
inline |
|
inline |
Preincrement operator.
|
inline |
Postincrement operator.
|
inline |
|
inline |
|
inline |
Predecrement operator.
|
inline |
Postdecrement operator.
|
inline |
|
inline |
|
inline |
Get the element n positions from the current one.
n | The distance to the element. |