|
dune-functions 2.9.1
|
A wrapper providing multiindex access to vector entries. More...
#include <dune/functions/functionspacebases/hierarchicvectorwrapper.hh>
Public Types | |
| using | Vector = V |
| template<class MultiIndex > | |
| using | Entry = Coefficient< MultiIndex > |
Public Member Functions | |
| HierarchicVectorWrapper (Vector &vector) | |
| template<class SizeProvider > | |
| void | resize (const SizeProvider &sizeProvider) |
| template<class MultiIndex > | |
| const Entry< MultiIndex > & | operator[] (const MultiIndex &index) const |
| template<class MultiIndex > | |
| Entry< MultiIndex > & | operator[] (const MultiIndex &index) |
| template<class MultiIndex > | |
| const Entry< MultiIndex > & | operator() (const MultiIndex &index) const |
| template<class MultiIndex > | |
| Entry< MultiIndex > & | operator() (const MultiIndex &index) |
| const Vector & | vector () const |
| Vector & | vector () |
Detailed Description
class Dune::Functions::HierarchicVectorWrapper< V, CO >
A wrapper providing multiindex access to vector entries.
The coefficient type should be a type such that the coefficients entries for each global basis function can be cast to this type. This is necessary because the wrapper cannot determine this type automatically for multi-type containers and non-uniform indices. The reason for this is, that the multi-index type will then be dynamically sized such that the index depth cannot statically be determined from the multi-indices. However, the compiler needs a fixed termination criterion for instantiation of recursive functions.
If no coefficient type is given, the wrapper tries to determine the coefficient type on its own assuming that the multi-indices have fixed size.
- Template Parameters
-
V Type of the raw wrapper vector CO Coefficient type
Member Typedef Documentation
◆ Entry
| using Dune::Functions::HierarchicVectorWrapper< V, CO >::Entry = Coefficient<MultiIndex> |
◆ Vector
| using Dune::Functions::HierarchicVectorWrapper< V, CO >::Vector = V |
Constructor & Destructor Documentation
◆ HierarchicVectorWrapper()
|
inline |
Member Function Documentation
◆ operator()() [1/2]
|
inline |
◆ operator()() [2/2]
|
inline |
◆ operator[]() [1/2]
|
inline |
◆ operator[]() [2/2]
|
inline |
◆ resize()
|
inline |
◆ vector() [1/2]
|
inline |
◆ vector() [2/2]
|
inline |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8