dune-pdelab
2.7-git
|
An accumulate-only view on a local vector that automatically takes into account an accumulation weight. More...
#include <dune/pdelab/gridfunctionspace/localvector.hh>
Public Types | |
typedef C | Container |
The type of the underlying LocalVector. More... | |
typedef Container::BaseContainer | BaseContainer |
The type of the storage container underlying the LocalVector. More... | |
typedef Container::value_type | value_type |
The value type of the entries. More... | |
typedef Container::weight_type | weight_type |
The type of the weight applied when accumulating contributions. More... | |
typedef WeightedVectorAccumulationView | WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views. More... | |
typedef Container::size_type | size_type |
The size_type of the underlying container. More... | |
Public Member Functions | |
WeightedAccumulationView | weightedAccumulationView (weight_type weight) |
Returns a WeighedAccumulationView with some weight in addition to this view's weight. More... | |
weight_type | weight () const |
Returns the weight associated with this view. More... | |
void | setWeight (weight_type weight) |
Resets the weighting coefficient of the view. More... | |
template<typename LFS > | |
void | accumulate (const LFS &lfs, size_type n, value_type v) |
Applies the current weight to v and adds the result to the n-th degree of freedom of the lfs. More... | |
template<typename LFS > | |
void | rawAccumulate (const LFS &lfs, size_type n, value_type v) |
Adds v to the n-th degree of freedom of the lfs without applying the current weight. More... | |
WeightedVectorAccumulationView (C &container, weight_type weight) | |
Constructor. More... | |
size_type | size () const |
Returns the size of the underlying container. More... | |
bool | modified () const |
Returns whether this view has been written to. More... | |
void | resetModified () |
Resets the modification state of the view to not modified. More... | |
Container & | container () |
Returns the container (of type LocalVector) that this view is based on. More... | |
const Container & | container () const |
Returns the container (of type LocalVector) that this view is based on (const version). More... | |
BaseContainer & | base () |
Returns the storage container of the underlying LocalVector. More... | |
const BaseContainer & | base () const |
Returns the storage container of the underlying LocalVector (const version). More... | |
auto | data () |
Access underlying container. More... | |
const auto | data () const |
Access underlying container, const version. More... | |
An accumulate-only view on a local vector that automatically takes into account an accumulation weight.
typedef Container::BaseContainer Dune::PDELab::WeightedVectorAccumulationView< C >::BaseContainer |
The type of the storage container underlying the LocalVector.
typedef C Dune::PDELab::WeightedVectorAccumulationView< C >::Container |
The type of the underlying LocalVector.
typedef Container::size_type Dune::PDELab::WeightedVectorAccumulationView< C >::size_type |
The size_type of the underlying container.
typedef Container::value_type Dune::PDELab::WeightedVectorAccumulationView< C >::value_type |
The value type of the entries.
typedef Container::weight_type Dune::PDELab::WeightedVectorAccumulationView< C >::weight_type |
The type of the weight applied when accumulating contributions.
typedef WeightedVectorAccumulationView Dune::PDELab::WeightedVectorAccumulationView< C >::WeightedAccumulationView |
Export this type for uniform handling of the containers themselves and their views.
|
inline |
Constructor.
|
inline |
Applies the current weight to v and adds the result to the n-th degree of freedom of the lfs.
|
inline |
Returns the storage container of the underlying LocalVector.
|
inline |
Returns the storage container of the underlying LocalVector (const version).
|
inline |
Returns the container (of type LocalVector) that this view is based on.
|
inline |
Returns the container (of type LocalVector) that this view is based on (const version).
|
inline |
Access underlying container.
|
inline |
Access underlying container, const version.
|
inline |
Returns whether this view has been written to.
|
inline |
Adds v to the n-th degree of freedom of the lfs without applying the current weight.
|
inline |
Resets the modification state of the view to not modified.
|
inline |
Resets the weighting coefficient of the view.
|
inline |
Returns the size of the underlying container.
|
inline |
Returns the weight associated with this view.
|
inline |
Returns a WeighedAccumulationView with some weight in addition to this view's weight.