DUNE-FUNCTIONS (unstable)
localfunction.hh
32template<class Signature, class LocalContext, template<class> class DerivativeTraits=DefaultDerivativeTraits, size_t bufferSize=56>
90template<class Range, class Domain, class LocalContext, template<class> class DerivativeTraits, size_t bufferSize>
93 typename Imp::LocalFunctionTraits<Range(Domain), LocalContext, DerivativeTraits, bufferSize>::Concept,
94 Imp::LocalFunctionTraits<Range(Domain), LocalContext, DerivativeTraits, bufferSize>::template Model>
96 using Traits = Imp::LocalFunctionTraits<Range(Domain), LocalContext, DerivativeTraits, bufferSize>;
119 static_assert(Dune::Functions::Concept::isLocalFunction<F, Range(Domain), LocalContext>(), "Trying to construct a LocalFunction from type that does not model the LocalFunction concept");
const LocalContext & localContext() const
Obtain local context this LocalFunction is bound to.
Definition: localfunction.hh:173
LocalFunction(F &&f)
Construct from function.
Definition: localfunction.hh:116
void unbind()
Unbind from local context.
Definition: localfunction.hh:158
bool bound() const
Return if the local function is bound to a grid element.
Definition: localfunction.hh:165
void bind(const LocalContext &context)
Bind function to a local context.
Definition: localfunction.hh:150
Base class for type-erased interface wrapper.
Definition: typeerasure.hh:169
friend DerivativeInterface derivative(const LocalFunction &t)
Get derivative of wrapped function.
Definition: localfunction.hh:139
Definition: polynomial.hh:17
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)