Dune Core Modules (unstable)
Dune::IndexedIterator< T * > Class Template Reference
Specialization for pointer types. More...
#include <dune/common/indexediterator.hh>
Public Member Functions | |
| constexpr | IndexedIterator (T *ptr, difference_type index=0) |
| Construct an IndexedIterator from a pointer and an index. | |
| constexpr reference | operator* () const |
| Dereference the pointer. | |
| constexpr IndexedIterator & | operator+= (typename Facade::difference_type d) |
| Increment the iterator and the index. | |
| constexpr difference_type | index () const noexcept |
| Return the enumeration index. | |
| constexpr pointer | operator-> () const |
| Arrow access to members of referenced value. | |
| constexpr decltype(auto) | operator++ () |
| Preincrement operator. | |
| constexpr DerivedIterator | operator++ (int) |
| Postincrement operator. | |
| constexpr decltype(auto) | operator-- () |
| Predecrement operator. More... | |
| constexpr DerivedIterator | operator-- (int) |
| Postdecrement operator. More... | |
| constexpr reference | operator[] (difference_type n) const |
| Dereference element with given offset form this iterator. More... | |
| constexpr DerivedIterator | operator+ (difference_type n) const |
| Create iterator incremented by given value. More... | |
| constexpr DerivedIterator & | operator-= (difference_type n) |
| Decrement iterator by given value. More... | |
| constexpr DerivedIterator | operator- (difference_type n) const |
| Create iterator decremented by given value. More... | |
Protected Types | |
| using | DerivedIterator = IndexedIterator< T * > |
| The derived iterator type. | |
Protected Member Functions | |
| constexpr const DerivedIterator & | derived () const |
Cast of *this to const DerivedIterator type. | |
| constexpr DerivedIterator & | derived () |
Cast of *this to DerivedIterator type. | |
Detailed Description
template<class T>
class Dune::IndexedIterator< T * >
class Dune::IndexedIterator< T * >
Specialization for pointer types.
Member Function Documentation
◆ operator+()
|
inlineconstexprinherited |
Create iterator incremented by given value.
Only enabled for random-access iterators.
◆ operator-()
|
inlineconstexprinherited |
Create iterator decremented by given value.
Only enabled for random-access iterators.
◆ operator--() [1/2]
|
inlineconstexprinherited |
Predecrement operator.
Only enabled for bidirectional and random-access iterators.
◆ operator--() [2/2]
|
inlineconstexprinherited |
Postdecrement operator.
Only enabled for bidirectional and random-access iterators.
◆ operator-=()
|
inlineconstexprinherited |
Decrement iterator by given value.
Only enabled for random-access iterators.
◆ operator[]()
|
inlineconstexprinherited |
Dereference element with given offset form this iterator.
- Parameters
-
n The distance to the element.
- Returns
- The element at that distance.
Only enabled for random-access iterators.
The documentation for this class was generated from the following file:
- dune/common/indexediterator.hh
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Apr 2, 22:34, 2026)