|
dune-common 2.10
|
Base class for stl conformant forward iterators. More...
#include <dune/common/iteratorfacades.hh>

Public Types | |
| 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 D | DifferenceType |
| The type of the difference between two positions. | |
| typedef R | Reference |
| The type of the reference to the values accessed. | |
Public Member Functions | |
| 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 |
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
| using Dune::RandomAccessIteratorFacade< T, V, R, D >::difference_type = D |
| typedef D Dune::RandomAccessIteratorFacade< T, V, R, D >::DifferenceType |
The type of the difference between two positions.
| using Dune::RandomAccessIteratorFacade< T, V, R, D >::iterator_category = std::random_access_iterator_tag |
| typedef V* Dune::RandomAccessIteratorFacade< T, V, R, D >::Pointer |
The pointer to the Value.
| using Dune::RandomAccessIteratorFacade< T, V, R, D >::pointer = V* |
| typedef R Dune::RandomAccessIteratorFacade< T, V, R, D >::Reference |
The type of the reference to the values accessed.
| using Dune::RandomAccessIteratorFacade< T, V, R, D >::reference = R |
| typedef V Dune::RandomAccessIteratorFacade< T, V, R, D >::Value |
The type of value accessed through the iterator.
| using Dune::RandomAccessIteratorFacade< T, V, R, D >::value_type = typename std::remove_const<V>::type |
|
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. |