dune-fem 2.8.0
|
An implementation of DenseVector which uses a std::vector of references as storage. More...
#include <dune/fem/storage/referencevector.hh>
Public Types | |
typedef BaseType::size_type | size_type |
typedef BaseType::value_type | value_type |
typedef value_type | FieldType |
typedef DenseMatVecTraits< ThisType >::container_type | DofStorageType |
Public Member Functions | |
DynamicReferenceVector (const A &a=A()) | |
Constructor with uninitialized vector. | |
DynamicReferenceVector (size_type n, const A &a=A()) | |
Constructor with uninitialized vector of size n. | |
DynamicReferenceVector (const ThisType &other) | |
Copy constructor. | |
DynamicReferenceVector (ThisType &&other) | |
Move constructor. | |
ThisType & | operator= (const value_type &k) |
template<class V > | |
ThisType & | operator= (const DenseVector< V > &other) |
ThisType & | operator= (const ThisType &other) |
ThisType & | operator= (ThisType &&other) |
size_type | capacity () const |
void | resize (size_type n) |
void | reserve (size_type n) |
void | bind (size_type i, K &u) |
Bind i-th entry to a reference. | |
void | unbind (size_type i) |
Unbind i-th entry. | |
size_type | size () const |
value_type & | operator[] (size_type i) |
const value_type & | operator[] (size_type i) const |
void | clear () |
An implementation of DenseVector which uses a std::vector of references as storage.
T | is the field type (use float, double, complex, etc) |
A | allocator type |
typedef DenseMatVecTraits<ThisType>::container_type Dune::Fem::DynamicReferenceVector< K, A >::DofStorageType |
typedef value_type Dune::Fem::DynamicReferenceVector< K, A >::FieldType |
typedef BaseType::size_type Dune::Fem::DynamicReferenceVector< K, A >::size_type |
typedef BaseType::value_type Dune::Fem::DynamicReferenceVector< K, A >::value_type |
|
inlineexplicit |
Constructor with uninitialized vector.
|
inlineexplicit |
Constructor with uninitialized vector of size n.
|
inline |
Copy constructor.
|
inline |
Move constructor.
|
inline |
Bind i-th entry to a reference.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Unbind i-th entry.