|
dune-common 2.8.0
|
Loading...
Searching...
No Matches
arraylist.hh
Go to the documentation of this file.
101 };
197 using SmartPointerAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::shared_ptr< std::array<MemberType,chunkSize_> > >;
202 using ArrayAllocator = typename std::allocator_traits<A>::template rebind_alloc< std::array<MemberType,chunkSize_> >;
282 };
404 };
441 inline const ConstArrayListIterator<T,N,A>& operator=(const ConstArrayListIterator<T,N,A>& other);
594 bool ArrayListIterator<T,N,A>::equals(const ConstArrayListIterator<MemberType,N,A>& other) const
603 bool ConstArrayListIterator<T,N,A>::equals(const ConstArrayListIterator<MemberType,N,A>& other) const
635 typename ArrayListIterator<T,N,A>::reference ArrayListIterator<T,N,A>::elementAt(size_type i) const
659 typename ArrayListIterator<T,N,A>::difference_type ArrayListIterator<T,N,A>::distanceTo(const ArrayListIterator<T,N,A>& other) const
667 typename ConstArrayListIterator<T,N,A>::difference_type ConstArrayListIterator<T,N,A>::distanceTo(const ConstArrayListIterator<T,N,A>& other) const
This file implements iterator facade classes for writing stl conformant iterators.
reference operator[](size_type i)
Get the element at specific position.
Definition arraylist.hh:503
iterator begin()
Get an iterator that is positioned at the first element.
Definition arraylist.hh:529
bool equals(const ArrayListIterator< MemberType, N, A > &other) const
Comares two iterators.
Definition arraylist.hh:585
void increment()
Increment the iterator.
Definition arraylist.hh:611
size_type size() const
Get the number of elements in the list.
Definition arraylist.hh:484
ConstArrayListIterator(const ArrayListIterator< T, N, A > &other)
Definition arraylist.hh:725
const ConstArrayListIterator< T, N, A > & operator=(const ConstArrayListIterator< T, N, A > &other)
Definition arraylist.hh:683
void decrement()
decrement the iterator.
Definition arraylist.hh:623
void eraseToHere()
Erase all entries before the current position and the one at the current position.
Definition arraylist.hh:691
ArrayList()
Constructs an Array list with one chunk.
Definition arraylist.hh:469
const_iterator begin() const
Get a random access iterator that is positioned at the first element.
Definition arraylist.hh:535
void increment()
Increment the iterator.
Definition arraylist.hh:617
iterator end()
Get a random access iterator positioned after the last element.
Definition arraylist.hh:541
const_reference elementAt(size_type i) const
Get the value of the list at an arbitrary position.
Definition arraylist.hh:641
const_reference operator[](size_type i) const
Get the element at specific position.
Definition arraylist.hh:510
void decrement()
decrement the iterator.
Definition arraylist.hh:629
const_iterator end() const
Get a random access iterator positioned after the last element.
Definition arraylist.hh:547
const_reference dereference() const
Access the element at the current position.
Definition arraylist.hh:653
reference elementAt(size_type i) const
Get the value of the list at an arbitrary position.
Definition arraylist.hh:635
bool equals(const ConstArrayListIterator< MemberType, N, A > &other) const
Comares to iterators.
Definition arraylist.hh:603
ArrayListIterator< T, N, A > & operator=(const ArrayListIterator< T, N, A > &other)
Definition arraylist.hh:675
difference_type distanceTo(const ConstArrayListIterator< T, N, A > &other) const
Definition arraylist.hh:667
reference dereference() const
Access the element at the current position.
Definition arraylist.hh:647
void push_back(const_reference entry)
Append an entry to the list.
Definition arraylist.hh:490
difference_type distanceTo(const ArrayListIterator< T, N, A > &other) const
Definition arraylist.hh:659
A random access iterator for the Dune::ArrayList class.
Definition arraylist.hh:256
@ chunkSize_
The number of elements in one chunk of the list.
Definition arraylist.hh:281
A::value_type MemberType
The member type.
Definition arraylist.hh:264
ArrayListIterator()
Standard constructor.
Definition arraylist.hh:347
A::difference_type difference_type
Definition arraylist.hh:266
typename A::value_type const & const_reference
Definition arraylist.hh:272
A constant random access iterator for the Dune::ArrayList class.
Definition arraylist.hh:377
typename A::value_type & reference
Definition arraylist.hh:392
@ chunkSize_
The number of elements in one chunk of the list.
Definition arraylist.hh:403
ConstArrayListIterator()
Definition arraylist.hh:443
A::value_type MemberType
The member type.
Definition arraylist.hh:386
A::difference_type difference_type
Definition arraylist.hh:388
typename A::value_type const & const_reference
Definition arraylist.hh:394
@ 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:92
ArrayListIterator< MemberType, N, A > iterator
A random access iterator.
Definition arraylist.hh:106
const T & const_reference
The type of a const reference to the type we store.
Definition arraylist.hh:82
T & reference
The type of a reference to the type we store.
Definition arraylist.hh:77
T * pointer
The type of a pointer to the type we store.
Definition arraylist.hh:87
ConstArrayListIterator< MemberType, N, A > const_iterator
A constant random access iterator.
Definition arraylist.hh:111
std::ptrdiff_t difference_type
The difference type.
Definition arraylist.hh:121
Base class for stl conformant forward iterators.
Definition iteratorfacades.hh:432
T copy(T... args)
T reserve(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8