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();
size_type capacity() const
Number of elements for which memory has been allocated.
Definition: dynvector.hh:81
char c
Definition: alignment.hh:37
std::istream & operator>>(std::istream &is, Pair< T1, T2 > &pair)
Read a pair or tuple.
Definition: tuples.hh:949
Definition: ftraits.hh:23
FieldTraits< K >::field_type field_type
Definition: dynvector.hh:43
Implements a generic iterator class for writing stl conformant iterators.
A few common exception classes.
DynamicVector< K > derived_type
Definition: dynvector.hh:34
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
container_type::size_type size_type
Definition: dynvector.hh:37
Traits::value_type value_type
export the type representing the field
Definition: densevector.hh:245
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
size_type size() const
size method
Definition: densevector.hh:285
K value_type
Definition: dynvector.hh:36
size_type vec_size() const
Definition: dynvector.hh:95
Interface for a class of dense vectors over a given field.
Definition: densevector.hh:17
Base::value_type value_type
Definition: dynvector.hh:59
T real_type
export the type representing the real type of the field
Definition: ftraits.hh:28
Implements the dense vector interface, with an exchangeable storage class.
std::vector< K > container_type
Definition: dynvector.hh:35
T field_type
export the type representing the field
Definition: ftraits.hh:26
void reserve(size_type n)
Definition: dynvector.hh:89
DynamicVector()
Constructor making uninitialized vector.
Definition: dynvector.hh:62
FieldTraits< K >::real_type real_type
Definition: dynvector.hh:44
Base::size_type size_type
Definition: dynvector.hh:58
Construct a vector with a dynamic size.
Definition: dynvector.hh:30
const K & vec_access(size_type i) const
Definition: dynvector.hh:97
Definition: matvectraits.hh:30
K & vec_access(size_type i)
Definition: dynvector.hh:96