DUNE PDELab (git)
overflowarray.hh
A dynamically sized array-like class with overflow.
Definition: overflowarray.hh:49
const_iterator end() const
Returns a const_iterator pointing to the end of the OverflowArray.
Definition: overflowarray.hh:149
friend std::size_t hash_value(const OverflowArray &v) noexcept
Compute hash value.
Definition: overflowarray.hh:220
void push_back(const value_type &t)
Appends an element to the end of the OverflowArray,.
Definition: overflowarray.hh:108
friend std::ostream & operator<<(std::ostream &s, const OverflowArray &c)
Write container to an output stream.
Definition: overflowarray.hh:225
iterator begin()
Returns a iterator pointing to the beginning of the OverflowArray.
Definition: overflowarray.hh:134
bool empty() const
Returns true if OverflowArray has no elements.
Definition: overflowarray.hh:205
size_type size() const
Returns number of elements in the OverflowArray.
Definition: overflowarray.hh:200
void pop_back()
Erases the last element of the OverflowArray, O(1) time.
Definition: overflowarray.hh:114
const_iterator begin() const
Returns a const_iterator pointing to the beginning of the OverflowArray.
Definition: overflowarray.hh:139
static constexpr size_type capacity()
Returns the capacity of the OverflowArray.
Definition: overflowarray.hh:210
static constexpr size_type max_size()
Returns the maximum length of the OverflowArray.
Definition: overflowarray.hh:215
const_reference front() const
Returns const reference to first element of OverflowArray.
Definition: overflowarray.hh:182
void clear()
Erases all elements.
Definition: overflowarray.hh:87
iterator end()
Returns an iterator pointing to the end of the OverflowArray.
Definition: overflowarray.hh:144
void resize(size_type n)
Specifies a new size for the OverflowArray.
Definition: overflowarray.hh:97
const_reference back() const
Returns const reference to last element of OverflowArray.
Definition: overflowarray.hh:194
reference back()
Returns reference to last element of OverflowArray.
Definition: overflowarray.hh:188
void push_front(const value_type &t)
Inserts an element to the begin of the OverflowArray,.
Definition: overflowarray.hh:126
reference front()
Returns reference to first element of OverflowArray.
Definition: overflowarray.hh:176
reference operator[](size_type i)
Returns reference to the i'th element.
Definition: overflowarray.hh:154
Generic class for stl-conforming iterators for container classes with operator[].
Definition: genericiterator.hh:153
Implements a generic iterator class for writing stl conformant iterators.
std::size_t hash_range(It first, It last)
Hashes all elements in the range [first,last) and returns the combined hash.
Definition: hash.hh:322
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 24, 23:30, 2024)