7#ifndef DUNE_FUNCTIONS_FUNCTIONSPACEBASES_LFEPREBASISMIXIN_HH
8#define DUNE_FUNCTIONS_FUNCTIONSPACEBASES_LFEPREBASISMIXIN_HH
13#include <dune/common/exceptions.hh>
18#include <dune/grid/common/mcmgmapper.hh>
54template <
class GV,
class LFE>
73 template <
class LFE_ = LFE,
74 std::enable_if_t<std::is_default_constructible_v<LFE_>,
int> = 0>
88 , lfe_(std::forward<LFE_>(lfe))
102template <
class GV,
class LFE>
117template <
class GV,
class LFE>
121 static constexpr int dim = GV::dimension;
125 using Element =
typename GV::template Codim<0>::Entity;
156 this->setSize(lfe_->size());
Definition polynomial.hh:18
A generic MixIn class for PreBasis with flat indices computed from a mapper.
Definition leafprebasismappermixin.hh:62
A pre-basis mixin class parametrized with a local finite-element and a DOF layout.
Definition lfeprebasismixin.hh:57
LFEPreBasisMixin(const GridView &gv, LFE_ &&lfe, MCMGLayout layout)
Constructor for a given grid view object, local finite-element and layout.
Definition lfeprebasismixin.hh:86
LFEPreBasisMixin(const GridView &gv, MCMGLayout layout)
Constructor for a given grid view object and layout.
Definition lfeprebasismixin.hh:75
Node makeNode() const
Create tree node.
Definition lfeprebasismixin.hh:92
GV GridView
The grid view that the FE basis is defined on.
Definition lfeprebasismixin.hh:63
Leaf basis node that encapsulates a local finite-element given from the LFEPreBasisMixin of type LFE.
Definition lfeprebasismixin.hh:120
LFE FiniteElement
Definition lfeprebasismixin.hh:126
std::size_t size_type
Definition lfeprebasismixin.hh:124
const FiniteElement & finiteElement() const
Return the LocalFiniteElement for the element we are bound to; might raise an error if unbound.
Definition lfeprebasismixin.hh:146
const Element & element() const
Return current element; might raise an error if unbound.
Definition lfeprebasismixin.hh:135
const FiniteElement * lfe_
Definition lfeprebasismixin.hh:160
void bind(const Element &e)
Bind to element. Stores a pointer to the passed element reference.
Definition lfeprebasismixin.hh:153
Node(const LFE &lfe)
Constructor; stores a pointer to the passed local finite-element lfe.
Definition lfeprebasismixin.hh:129
typename GV::template Codim< 0 >::Entity Element
Definition lfeprebasismixin.hh:125
const Element * element_
Definition lfeprebasismixin.hh:161