Dune Core Modules (2.3.1)
reservedvector.hh
Go to the documentation of this file.
Generic class for stl-conforming iterators for container classes with operator[].
Definition: genericiterator.hh:152
iterator end()
Returns an iterator pointing to the end of the vector.
Definition: reservedvector.hh:107
static size_type max_size()
Returns the maximum length of the vector.
Definition: reservedvector.hh:181
size_type size() const
Returns number of elements in the vector.
Definition: reservedvector.hh:163
const_reference front() const
Returns const reference to first element of vector.
Definition: reservedvector.hh:138
const_iterator begin() const
Returns a const_iterator pointing to the beginning of the vector.
Definition: reservedvector.hh:102
void push_back(const T &t)
Appends an element to the end of a vector, up to the maximum size n, O(1) time.
Definition: reservedvector.hh:84
bool empty() const
Returns true if vector has no elements.
Definition: reservedvector.hh:169
friend std::ostream & operator<<(std::ostream &s, const ReservedVector &v)
Send ReservedVector to an output stream.
Definition: reservedvector.hh:189
T value_type
The type of object, T, stored in the vector.
Definition: reservedvector.hh:43
reference front()
Returns reference to first element of vector.
Definition: reservedvector.hh:131
const_reference back() const
Returns const reference to last element of vector.
Definition: reservedvector.hh:152
void resize(size_t s)
Specifies a new size for the vector.
Definition: reservedvector.hh:77
reference back()
Returns reference to last element of vector.
Definition: reservedvector.hh:145
iterator begin()
Returns a iterator pointing to the beginning of the vector.
Definition: reservedvector.hh:97
const T & const_reference
Const reference to T.
Definition: reservedvector.hh:49
static size_type capacity()
Returns current capacity (allocated memory) of the vector.
Definition: reservedvector.hh:175
Dune::GenericIterator< const ReservedVector, const value_type > const_iterator
Const iterator used to iterate through a vector.
Definition: reservedvector.hh:57
reference operator[](size_type i)
Returns reference to the i'th element.
Definition: reservedvector.hh:117
std::ptrdiff_t difference_type
A signed integral type.
Definition: reservedvector.hh:53
void pop_back()
Erases the last element of the vector, O(1) time.
Definition: reservedvector.hh:91
Dune::GenericIterator< ReservedVector, value_type > iterator
Iterator used to iterate through a vector.
Definition: reservedvector.hh:55
size_t size_type
An unsigned integral type.
Definition: reservedvector.hh:51
const_iterator end() const
Returns a const_iterator pointing to the end of the vector.
Definition: reservedvector.hh:112
Implements a generic iterator class for writing stl conformant iterators.
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 12, 23:30, 2024)