Go to the documentation of this file.
3 #ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALINDEXSET_HH
4 #define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALINDEXSET_HH
6 #include <dune/common/std/type_traits.hh>
7 #include <dune/common/hybridutilities.hh>
16 template<
class LV,
class NIS>
30 template<
typename NodeIndexSet>
31 using hasIndices = decltype(std::declval<NodeIndexSet>().indices(std::declval<std::vector<MultiIndex>>().begin()));
51 Std::is_detected<hasIndices,NodeIndexSet>{},
63 template<
class TreePath>
112 #endif // DUNE_FUNCTIONS_FUNCTIONSPACEBASES_DEFAULTLOCALINDEXSET_HH
Definition: polynomial.hh:7
std::size_t size_type
Definition: defaultlocalindexset.hh:26
std::vector< MultiIndex > indices_
Definition: defaultlocalindexset.hh:102
DefaultLocalIndexSet(NodeIndexSet &&nodeIndexSet)
Definition: defaultlocalindexset.hh:39
void bind(const LocalView &localView)
Bind the index set to a LocalView.
Definition: defaultlocalindexset.hh:45
DefaultLocalIndexSet(const NodeIndexSet &nodeIndexSet)
Definition: defaultlocalindexset.hh:35
The restriction of a finite element basis to a single element.
Definition: subspacelocalview.hh:29
const LocalView & localView() const
Return the local view that we are attached to.
Definition: defaultlocalindexset.hh:92
void unbind()
Unbind the view.
Definition: defaultlocalindexset.hh:71
NodeIndexSet nodeIndexSet_
Definition: defaultlocalindexset.hh:101
NIS NodeIndexSet
Definition: defaultlocalindexset.hh:22
MultiIndex index(size_type i) const
Maps from subtree index set [0..size-1] to a globally unique multi index in global basis.
Definition: defaultlocalindexset.hh:85
void bind(const SubspaceLocalView< LocalView, TreePath > &subspaceLocalView)
Bind the index set to a SubspaceLocalView.
Definition: defaultlocalindexset.hh:64
typename NodeIndexSet::MultiIndex MultiIndex
Type used for global numbering of the basis vectors.
Definition: defaultlocalindexset.hh:25
LV LocalView
Definition: defaultlocalindexset.hh:21
const LocalView * localView_
Definition: defaultlocalindexset.hh:99
const RootLocalView & rootLocalView() const
Definition: subspacelocalview.hh:125
Definition: defaultlocalindexset.hh:17
size_type size() const
Size of subtree rooted in this node (element-local)
Definition: defaultlocalindexset.hh:79