|
dune-common 2.12-git
|
Loading...
Searching...
No Matches
Dune::ParallelIndexSet< TG, TL, N >::iterator Class Reference
The iterator over the pairs. More...
#include <dune/common/parallel/indexset.hh>
Inheritance diagram for Dune::ParallelIndexSet< TG, TL, N >::iterator:

Public Types | |
| typedef A::value_type | MemberType |
| The member type. | |
| typedef A::difference_type | difference_type |
| typedef A::size_type | size_type |
| using | reference = typename A::value_type & |
| using | const_reference = typename A::value_type const & |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = typename std::remove_const< A::value_type >::type |
| using | pointer = A::value_type * |
| typedef ArrayListIterator< T, N, A > | DerivedType |
| The type of derived iterator. | |
| typedef A::value_type | Value |
| The type of value accessed through the iterator. | |
| typedef A::value_type * | Pointer |
| The pointer to the Value. | |
| typedef A::difference_type | DifferenceType |
| The type of the difference between two positions. | |
| typedef A::value_type & | Reference |
| The type of the reference to the values accessed. | |
Static Public Attributes | |
| static constexpr int | chunkSize_ = (N > 0) ? N : 1 |
| The number of elements in one chunk of the list. | |
Friends | |
| class | ParallelIndexSet< GlobalIndex, LocalIndex, N > |
Detailed Description
The iterator over the pairs.
Member Typedef Documentation
◆ const_reference
|
inherited |
◆ DerivedType
|
inherited |
The type of derived iterator.
The iterator has to define following functions have to be present:
// Access the value referred to.
// Access the value at some other location
// Compare for equality with j
// position the iterator at the next element.
void increment()
// position the iterator at the previous element.
// advance the iterator by a number of positions-
// calculate the distance to another iterator.
// One should incorporate an assertion whether
// the same containers are referenced
bool equals(const ArrayListIterator< MemberType, N, A > &other) const
Compares two iterators.
Definition arraylist.hh:571
void increment()
Increment the iterator.
Definition arraylist.hh:597
void decrement()
decrement the iterator.
Definition arraylist.hh:609
reference elementAt(size_type i) const
Get the value of the list at an arbitrary position.
Definition arraylist.hh:621
reference dereference() const
Access the element at the current position.
Definition arraylist.hh:633
difference_type distanceTo(const ArrayListIterator< T, N, A > &other) const
Definition arraylist.hh:645
A::difference_type DifferenceType
The type of the difference between two positions.
Definition iteratorfacades.hh:493
A::value_type & Reference
The type of the reference to the values accessed.
Definition iteratorfacades.hh:498
For an elaborate explanation see the STL Documentation
◆ difference_type
|
inherited |
◆ DifferenceType
|
inherited |
The type of the difference between two positions.
◆ iterator_category
|
inherited |
◆ MemberType
|
inherited |
The member type.
◆ pointer
|
inherited |
◆ Pointer
|
inherited |
The pointer to the Value.
◆ reference
|
inherited |
◆ Reference
|
inherited |
The type of the reference to the values accessed.
◆ size_type
|
inherited |
◆ Value
|
inherited |
The type of value accessed through the iterator.
◆ value_type
|
inherited |
Member Function Documentation
◆ 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[]()
|
inlineconstexprinherited |
Get the element n positions from the current one.
- Parameters
-
n The distance to the element.
- Returns
- The element at that distance.
◆ position()
|
inlineinherited |
- Todo:
- Please doc me!
Member Data Documentation
◆ chunkSize_
|
staticconstexprinherited |
The number of elements in one chunk of the list.
This has to be at least one. The default is 100.
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