|
dune-common 2.8.0
|
Loading...
Searching...
No Matches
dynvector.hh
Go to the documentation of this file.
Macro for wrapping boundary checks.
Implements a generic iterator class for writing stl conformant iterators.
Implements the dense vector interface, with an exchangeable storage class.
A few common exception classes.
Stream & operator>>(Stream &stream, std::tuple< Ts... > &t)
Read a std::tuple.
Definition streamoperators.hh:41
#define DUNE_ASSERT_BOUNDS(cond)
If DUNE_CHECK_BOUNDS is defined: check if condition cond holds; otherwise, do nothing.
Definition boundschecking.hh:28
STL namespace.
Interface for a class of dense vectors over a given field.
Definition densevector.hh:227
Traits::value_type value_type
export the type representing the field
Definition densevector.hh:248
Traits::size_type size_type
The type used for the index access and size operation.
Definition densevector.hh:257
void resize(size_type n, value_type c=value_type())
Definition dynvector.hh:139
DynamicVector(const DynamicVector &x)
Constructor making vector with identical coordinates.
Definition dynvector.hh:89
std::vector< K, Allocator > container_type
Definition dynvector.hh:65
const K * data() const noexcept
return pointer to underlying array
Definition dynvector.hh:166
DynamicVector(const allocator_type &a=allocator_type())
Constructor making uninitialized vector.
Definition dynvector.hh:70
DynamicVector(DynamicVector &&x)
Move constructor.
Definition dynvector.hh:94
K * data() noexcept
return pointer to underlying array
Definition dynvector.hh:160
DynamicVector & operator=(DynamicVector &&other)
Move assignment operator.
Definition dynvector.hh:124
DynamicVector & operator=(const DynamicVector &other)
Copy assignment operator.
Definition dynvector.hh:117
size_type capacity() const
Number of elements for which memory has been allocated.
Definition dynvector.hh:135
DynamicVector(size_type n, const allocator_type &a=allocator_type())
Definition dynvector.hh:74
DynamicVector(std::initializer_list< K > const &l)
Construct from a std::initializer_list.
Definition dynvector.hh:84
DynamicVector(const DynamicVector< T, Allocator > &x)
Definition dynvector.hh:99
DynamicVector(size_type n, value_type c, const allocator_type &a=allocator_type())
Constructor making vector with identical coordinates.
Definition dynvector.hh:79
DynamicVector(const DenseVector< X > &x, const allocator_type &a=allocator_type())
Copy constructor from another DenseVector.
Definition dynvector.hh:105
K value_type
Definition dynvector.hh:38
DynamicVector< K, Allocator > derived_type
Definition dynvector.hh:36
std::vector< K, Allocator > container_type
Definition dynvector.hh:37
container_type::size_type size_type
Definition dynvector.hh:39
FieldTraits< K >::real_type real_type
Definition dynvector.hh:46
FieldTraits< K >::field_type field_type
Definition dynvector.hh:45
Definition ftraits.hh:24
T field_type
export the type representing the field
Definition ftraits.hh:26
T real_type
export the type representing the real type of the field
Definition ftraits.hh:28
Definition matvectraits.hh:29
T capacity(T... args)
T data(T... args)
T push_back(T... args)
T reserve(T... args)
T resize(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8