|
dune-common
2.3.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. More... | |
| typedef C::size_type | SizeType |
| The type to index the underlying container. More... | |
| typedef DenseIterator< C, T > | DerivedType |
| The type of derived iterator. More... | |
| typedef T | Value |
| The type of value accessed through the iterator. More... | |
| typedef T * | Pointer |
| The pointer to the Value. More... | |
| typedef T & | Reference |
| The type of the reference to the values accessed. More... | |
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 More... | |
| 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 |
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 |
1.8.7