|
dune-common 2.11
|
A constant random access iterator for the Dune::ArrayList class. More...
#include <dune/common/arraylist.hh>

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 const & |
| using | const_reference = typename A::value_type const & |
| using | iterator_category = std::random_access_iterator_tag |
| using | value_type = typename std::remove_const< V >::type |
| using | pointer = V * |
| 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 | |
| bool | equals (const ConstArrayListIterator< MemberType, N, A > &other) const |
| Compares to iterators. | |
| void | increment () |
| Increment the iterator. | |
| void | decrement () |
| decrement the iterator. | |
| void | advance (difference_type n) |
| difference_type | distanceTo (const ConstArrayListIterator< T, N, A > &other) const |
| reference | elementAt (size_type i) const |
| Get the value of the list at an arbitrary position. | |
| reference | dereference () const |
| Access the element at the current position. | |
| ConstArrayListIterator () | |
| ConstArrayListIterator (const ArrayListIterator< T, N, A > &other) | |
| 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 |
Static Public Attributes | |
| static constexpr int | chunkSize_ = (N > 0) ? N : 1 |
| The number of elements in one chunk of the list. | |
Friends | |
| class | ArrayList< T, N, A > |
| class | ArrayListIterator< T, N, A > |
Detailed Description
class Dune::ConstArrayListIterator< T, N, A >
A constant random access iterator for the Dune::ArrayList class.
Member Typedef Documentation
◆ const_reference
| using Dune::ConstArrayListIterator< T, N, A >::const_reference = typename A::value_type const& |
◆ 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
| typedef A::difference_type Dune::ConstArrayListIterator< T, N, A >::difference_type |
◆ DifferenceType
|
inherited |
The type of the difference between two positions.
◆ iterator_category
|
inherited |
◆ MemberType
| typedef A::value_type Dune::ConstArrayListIterator< T, N, A >::MemberType |
The member type.
◆ pointer
|
inherited |
◆ Pointer
|
inherited |
The pointer to the Value.
◆ reference
| using Dune::ConstArrayListIterator< T, N, A >::reference = typename A::value_type const& |
◆ Reference
|
inherited |
The type of the reference to the values accessed.
◆ size_type
| typedef A::size_type Dune::ConstArrayListIterator< T, N, A >::size_type |
◆ Value
|
inherited |
The type of value accessed through the iterator.
◆ value_type
|
inherited |
Constructor & Destructor Documentation
◆ ConstArrayListIterator()
|
inline |
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.
Friends And Related Symbol Documentation
◆ ArrayList< T, N, A >
|
friend |
◆ ArrayListIterator< T, N, A >
|
friend |
Member Data Documentation
◆ chunkSize_
|
staticconstexpr |
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