|
dune-common 2.12-git
|
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 | |
| constexpr | DenseIterator () |
| constexpr | DenseIterator (C &cont, SizeType pos) |
| constexpr | DenseIterator (const MutableIterator &other) |
| constexpr | DenseIterator (const ConstIterator &other) |
| constexpr DenseIterator & | operator= (const ConstIterator &other) |
| constexpr DenseIterator & | operator= (const MutableIterator &other) |
| constexpr bool | equals (const MutableIterator &other) const |
| constexpr bool | equals (const ConstIterator &other) const |
| constexpr R | dereference () const |
| constexpr void | increment () |
| constexpr void | decrement () |
| constexpr R | elementAt (DifferenceType i) const |
| constexpr void | advance (DifferenceType n) |
| constexpr DifferenceType | distanceTo (DenseIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T >::type > other) const |
| constexpr DifferenceType | distanceTo (DenseIterator< typename std::remove_const< C >::type, typename std::remove_const< T >::type > other) const |
| constexpr SizeType | index () const |
| return index | |
| constexpr Reference | operator* () const |
| Dereferencing operator. | |
| constexpr Pointer | operator-> () const |
| constexpr Reference | operator[] (DifferenceType n) const |
| Get the element n positions from the current one. | |
| constexpr DerivedType & | operator++ () |
| Preincrement operator. | |
| constexpr DerivedType | operator++ (int) |
| Postincrement operator. | |
| constexpr DerivedType & | operator+= (DifferenceType n) |
| constexpr DerivedType | operator+ (DifferenceType n) const |
| constexpr DerivedType & | operator-- () |
| Predecrement operator. | |
| constexpr DerivedType | operator-- (int) |
| Postdecrement operator. | |
| constexpr DerivedType & | operator-= (DifferenceType n) |
| constexpr DerivedType | operator- (DifferenceType n) const |
Detailed Description
class Dune::DenseIterator< C, T, R >
Generic iterator class for dense vector and matrix implementations.
provides sequential access to DenseVector, FieldVector and FieldMatrix
Member Typedef Documentation
◆ DerivedType
|
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
◆ difference_type
|
inherited |
◆ DifferenceType
| typedef std::ptrdiff_t Dune::DenseIterator< C, T, R >::DifferenceType |
The type of the difference between two positions.
◆ iterator_category
|
inherited |
◆ pointer
|
inherited |
◆ Pointer
|
inherited |
The pointer to the Value.
◆ reference
|
inherited |
◆ Reference
|
inherited |
The type of the reference to the values accessed.
◆ SizeType
| typedef C::size_type Dune::DenseIterator< C, T, R >::SizeType |
The type to index the underlying container.
◆ Value
|
inherited |
The type of value accessed through the iterator.
◆ value_type
|
inherited |
Constructor & Destructor Documentation
◆ DenseIterator() [1/4]
|
inlineconstexpr |
◆ DenseIterator() [2/4]
|
inlineconstexpr |
◆ DenseIterator() [3/4]
|
inlineconstexpr |
◆ DenseIterator() [4/4]
|
inlineconstexpr |
Member Function Documentation
◆ advance()
|
inlineconstexpr |
◆ decrement()
|
inlineconstexpr |
◆ dereference()
|
inlineconstexpr |
◆ distanceTo() [1/2]
|
inlineconstexpr |
◆ distanceTo() [2/2]
|
inlineconstexpr |
◆ elementAt()
|
inlineconstexpr |
◆ equals() [1/2]
|
inlineconstexpr |
◆ equals() [2/2]
|
inlineconstexpr |
◆ increment()
|
inlineconstexpr |
◆ index()
|
inlineconstexpr |
return index
◆ operator*()
|
inlineconstexprinherited |
Dereferencing operator.
◆ operator+()
|
inlineconstexprinherited |
◆ operator++() [1/2]
|
inlineconstexprinherited |
Preincrement operator.
◆ operator++() [2/2]
|
inlineconstexprinherited |
Postincrement operator.
◆ operator+=()
|
inlineconstexprinherited |
◆ operator-()
|
inlineconstexprinherited |
◆ operator--() [1/2]
|
inlineconstexprinherited |
Predecrement operator.
◆ operator--() [2/2]
|
inlineconstexprinherited |
Postdecrement operator.
◆ operator-=()
|
inlineconstexprinherited |
◆ operator->()
|
inlineconstexprinherited |
◆ operator=() [1/2]
|
inlineconstexpr |
◆ operator=() [2/2]
|
inlineconstexpr |
◆ operator[]()
|
inlineconstexprinherited |
Get the element n positions from the current one.
- Parameters
-
n The distance to the element.
- Returns
- The element at that distance.
Friends And Related Symbol Documentation
◆ DenseIterator< const typename std::remove_const< C >::type, const typename std::remove_const< T >::type, typename const_reference< R >::type >
|
friend |
◆ DenseIterator< typename std::remove_const< C >::type, typename std::remove_const< T >::type, typename mutable_reference< R >::type >
|
friend |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8