Dune Core Modules (2.9.0)
arraylist.hh
Go to the documentation of this file.
3// SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
196 using SmartPointerAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::shared_ptr< std::array<MemberType,chunkSize_> > >;
201 using ArrayAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::array<MemberType,chunkSize_> >;
582 bool ArrayListIterator<T,N,A>::equals(const ConstArrayListIterator<MemberType,N,A>& other) const
591 bool ConstArrayListIterator<T,N,A>::equals(const ConstArrayListIterator<MemberType,N,A>& other) const
623 typename ArrayListIterator<T,N,A>::reference ArrayListIterator<T,N,A>::elementAt(size_type i) const
629 typename ConstArrayListIterator<T,N,A>::const_reference ConstArrayListIterator<T,N,A>::elementAt(size_type i) const
641 typename ConstArrayListIterator<T,N,A>::const_reference ConstArrayListIterator<T,N,A>::dereference() const
647 typename ArrayListIterator<T,N,A>::difference_type ArrayListIterator<T,N,A>::distanceTo(const ArrayListIterator<T,N,A>& other) const
655 typename ConstArrayListIterator<T,N,A>::difference_type ConstArrayListIterator<T,N,A>::distanceTo(const ConstArrayListIterator<T,N,A>& other) const
A random access iterator for the Dune::ArrayList class.
Definition: arraylist.hh:255
A::value_type MemberType
The member type.
Definition: arraylist.hh:263
ArrayListIterator()
Standard constructor.
Definition: arraylist.hh:340
static constexpr int chunkSize_
The number of elements in one chunk of the list.
Definition: arraylist.hh:278
static constexpr int chunkSize_
The number of elements in one chunk of the list. This has to be at least one. The default is 100.
Definition: arraylist.hh:100
const T * const_pointer
The type of a const pointer to the type we store.
Definition: arraylist.hh:94
ArrayListIterator< MemberType, N, A > iterator
A random access iterator.
Definition: arraylist.hh:105
const T & const_reference
The type of a const reference to the type we store.
Definition: arraylist.hh:84
T & reference
The type of a reference to the type we store.
Definition: arraylist.hh:79
T * pointer
The type of a pointer to the type we store.
Definition: arraylist.hh:89
ConstArrayListIterator< MemberType, N, A > const_iterator
A constant random access iterator.
Definition: arraylist.hh:110
std::ptrdiff_t difference_type
The difference type.
Definition: arraylist.hh:120
A constant random access iterator for the Dune::ArrayList class.
Definition: arraylist.hh:370
static constexpr int chunkSize_
The number of elements in one chunk of the list.
Definition: arraylist.hh:394
A::value_type MemberType
The member type.
Definition: arraylist.hh:379
Base class for stl conformant forward iterators.
Definition: iteratorfacades.hh:434
reference operator[](size_type i)
Get the element at specific position.
Definition: arraylist.hh:491
iterator begin()
Get an iterator that is positioned at the first element.
Definition: arraylist.hh:517
bool equals(const ArrayListIterator< MemberType, N, A > &other) const
Comares two iterators.
Definition: arraylist.hh:573
void increment()
Increment the iterator.
Definition: arraylist.hh:599
size_type size() const
Get the number of elements in the list.
Definition: arraylist.hh:472
void decrement()
decrement the iterator.
Definition: arraylist.hh:611
void eraseToHere()
Erase all entries before the current position and the one at the current position.
Definition: arraylist.hh:663
ArrayList()
Constructs an Array list with one chunk.
Definition: arraylist.hh:457
const_iterator begin() const
Get a random access iterator that is positioned at the first element.
Definition: arraylist.hh:523
void increment()
Increment the iterator.
Definition: arraylist.hh:605
iterator end()
Get a random access iterator positioned after the last element.
Definition: arraylist.hh:529
const_reference elementAt(size_type i) const
Get the value of the list at an arbitrary position.
Definition: arraylist.hh:629
const_reference operator[](size_type i) const
Get the element at specific position.
Definition: arraylist.hh:498
void decrement()
decrement the iterator.
Definition: arraylist.hh:617
const_iterator end() const
Get a random access iterator positioned after the last element.
Definition: arraylist.hh:535
const_reference dereference() const
Access the element at the current position.
Definition: arraylist.hh:641
reference elementAt(size_type i) const
Get the value of the list at an arbitrary position.
Definition: arraylist.hh:623
bool equals(const ConstArrayListIterator< MemberType, N, A > &other) const
Comares to iterators.
Definition: arraylist.hh:591
difference_type distanceTo(const ConstArrayListIterator< T, N, A > &other) const
Definition: arraylist.hh:655
reference dereference() const
Access the element at the current position.
Definition: arraylist.hh:635
void push_back(const_reference entry)
Append an entry to the list.
Definition: arraylist.hh:478
difference_type distanceTo(const ArrayListIterator< T, N, A > &other) const
Definition: arraylist.hh:647
constexpr auto equals(T1 &&t1, T2 &&t2)
Equality comparison.
Definition: hybridutilities.hh:402
constexpr decltype(auto) elementAt(Container &&c, Index &&i)
Get element at given position from container.
Definition: hybridutilities.hh:135
constexpr HybridTreePath< T..., std::size_t > push_back(const HybridTreePath< T... > &tp, std::size_t i)
Appends a run time index to a HybridTreePath.
Definition: treepath.hh:281
This file implements iterator facade classes for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Dec 20, 23:31, 2024)