|
dune-pdelab
2.5-dev
|
A container for storing data associated with the degrees of freedom of a LocalFunctionSpace. More...
#include <dune/pdelab/gridfunctionspace/localvector.hh>

Public Types | |
| typedef std::vector< T > | BaseContainer |
| The type of the underlying storage container. More... | |
| typedef BaseContainer::value_type | value_type |
| The value type of this container. More... | |
| typedef BaseContainer::size_type | size_type |
| The size type of this container. More... | |
| typedef BaseContainer::reference | reference |
| The reference type of this container. More... | |
| typedef BaseContainer::const_reference | const_reference |
| The const reference type of this container. More... | |
| typedef W | weight_type |
| The weight type of this container. More... | |
| typedef WeightedVectorAccumulationView< LocalVector > | WeightedAccumulationView |
| An accumulate-only view of this container that automatically applies a weight to all contributions. More... | |
Public Member Functions | |
| WeightedAccumulationView | weightedAccumulationView (weight_type weight) |
| Returns a WeighedAccumulationView of this container with the given weight. More... | |
| template<typename LFS > | |
| reference | operator() (const LFS &lfs, size_type i) |
| Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpace lfs. More... | |
| template<typename LFS > | |
| const_reference | operator() (const LFS &lfs, size_type i) const |
| Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpace lfs (const version). More... | |
| LocalVector & | operator= (const value_type &v) |
| Assigns v to all entries. More... | |
| LocalVector & | operator*= (const value_type &v) |
| Multiplies all entries by v. More... | |
| size_type | size () const |
| The size of the container. More... | |
| void | resize (size_type size) |
| Resize the container. More... | |
| void | assign (size_type size, const T &value) |
| Resize the container to size and assign the passed value to all entries. More... | |
| BaseContainer & | base () |
| Returns the underlying, std::vector-like storage container. More... | |
| const BaseContainer & | base () const |
| Returns the underlying, std::vector-like storage container (const version). More... | |
| LocalVector () | |
| Default constructor. More... | |
| LocalVector (size_type n) | |
| Construct a LocalVector with size n. More... | |
| LocalVector (size_type n, const value_type &v) | |
| Construct a LocalVector with size n and initialize all entries with v. More... | |
A container for storing data associated with the degrees of freedom of a LocalFunctionSpace.
This container acts as a wrapper around a std::vector-like container and supports accessing its entries indexed by pairs of (LocalFunctionSpace,DOF of LocalFunctionSpace). If requested by specifying a non-default LFSFlavorTag, the container will also assert that a LocalFunctionSpace of the matching kind (trial or test space) is used to access its content.
| T | The type of values to store in the vector. |
| LFSFlavorTag | Tag type for differentiating between trial and test space vectors. |
| W | The type of weight applied in a WeightedAccumulationView. |
| typedef std::vector<T> Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::BaseContainer |
The type of the underlying storage container.
| typedef BaseContainer::const_reference Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::const_reference |
The const reference type of this container.
| typedef BaseContainer::reference Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::reference |
The reference type of this container.
| typedef BaseContainer::size_type Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::size_type |
The size type of this container.
| typedef BaseContainer::value_type Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::value_type |
The value type of this container.
| typedef W Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::weight_type |
The weight type of this container.
A value of this type will be used to assign a weight to contributions in a WeightedAccumulationView.
| typedef WeightedVectorAccumulationView<LocalVector> Dune::PDELab::LocalVector< T, LFSFlavorTag, W >::WeightedAccumulationView |
An accumulate-only view of this container that automatically applies a weight to all contributions.
|
inline |
Default constructor.
|
inlineexplicit |
Construct a LocalVector with size n.
|
inline |
Construct a LocalVector with size n and initialize all entries with v.
|
inline |
Resize the container to size and assign the passed value to all entries.
|
inline |
Returns the underlying, std::vector-like storage container.
|
inline |
Returns the underlying, std::vector-like storage container (const version).
|
inline |
Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpace lfs.
| lfs | The LocalFunctionSpace for which to retrieve a value. This must be the LFS that has been used to load the values into this vector or one of its children (right now, this is not checked). |
| i | The index of the degree of freedom of the LocalFunctionSpace that will be returned. |
|
inline |
Access the value in this container associated with the i-th degree of freedom of the LocalFunctionSpace lfs (const version).
| lfs | The LocalFunctionSpace for which to retrieve a value. This must be the LFS that has been used to load the values into this vector or one of its children (right now, this is not checked). |
| i | The index of the degree of freedom of the LocalFunctionSpace that will be returned. |
|
inline |
Multiplies all entries by v.
|
inline |
Assigns v to all entries.
|
inline |
Resize the container.
|
inline |
The size of the container.
|
inline |
Returns a WeighedAccumulationView of this container with the given weight.
1.8.17