4 #ifndef DUNE_DYNVECTOR_HH
5 #define DUNE_DYNVECTOR_HH
37 typedef typename container_type::size_type
size_type;
74 using Base::operator=;
83 return _data.capacity();
95 size_type
vec_size()
const {
return _data.size(); }
97 const K &
vec_access(size_type i)
const {
return _data[i]; }
void reserve(size_type n)
Definition: dynvector.hh:89
DynamicVector()
Constructor making uninitialized vector.
Definition: dynvector.hh:62
DynamicVector(const DynamicVector &x)
Constructor making vector with identical coordinates.
Definition: dynvector.hh:70
Traits::size_type size_type
The type used for the index access and size operation.
Definition: densevector.hh:254
Dune namespace.
Definition: alignment.hh:13
A few common exception classes.
const K & vec_access(size_type i) const
Definition: dynvector.hh:97
container_type::size_type size_type
Definition: dynvector.hh:37
Interface for a class of dense vectors over a given field.
Definition: densevector.hh:17
char c
Definition: alignment.hh:37
K value_type
Definition: dynvector.hh:36
T field_type
export the type representing the field
Definition: ftraits.hh:26
Construct a vector with a dynamic size.
Definition: dynvector.hh:30
Traits::value_type value_type
export the type representing the field
Definition: densevector.hh:245
std::istream & operator>>(std::istream &is, Pair< T1, T2 > &pair)
Read a pair or tuple.
Definition: tuples.hh:949
DynamicVector(size_type n, value_type c=value_type())
Constructor making vector with identical coordinates.
Definition: dynvector.hh:65
void resize(size_type n, value_type c=value_type())
Definition: dynvector.hh:85
std::vector< K > container_type
Definition: dynvector.hh:35
size_type size() const
size method
Definition: densevector.hh:285
Implements a generic iterator class for writing stl conformant iterators.
size_type vec_size() const
Definition: dynvector.hh:95
T real_type
export the type representing the real type of the field
Definition: ftraits.hh:28
FieldTraits< K >::real_type real_type
Definition: dynvector.hh:44
Base::size_type size_type
Definition: dynvector.hh:58
Definition: ftraits.hh:23
K & vec_access(size_type i)
Definition: dynvector.hh:96
Implements the dense vector interface, with an exchangeable storage class.
size_type capacity() const
Number of elements for which memory has been allocated.
Definition: dynvector.hh:81
Base::value_type value_type
Definition: dynvector.hh:59
FieldTraits< K >::field_type field_type
Definition: dynvector.hh:43
DynamicVector< K > derived_type
Definition: dynvector.hh:34
Definition: matvectraits.hh:30