3#ifndef DUNE_FUNCTIONS_COMMON_LOCALFUNCTION_FUNCTION_IMP_HH
4#define DUNE_FUNCTIONS_COMMON_LOCALFUNCTION_FUNCTION_IMP_HH
6#include <dune/functions/common/type_traits.hh>
7#include <dune/functions/common/differentiablefunction_imp.hh>
19template<
class Signature,
class DerivativeInterface,
class LocalContext>
20class LocalFunctionWrapperInterface :
21 public DifferentiableFunctionWrapperInterface<Signature, DerivativeInterface>
24 virtual void bind(
const LocalContext&) = 0;
26 virtual void unbind() = 0;
28 virtual const LocalContext& localContext()
const = 0;
33template<
class Signature,
class DerivativeInterface,
class LocalContext,
class B>
34class LocalFunctionWrapperImplementation :
35 public DifferentiableFunctionWrapperImplementation<Signature, DerivativeInterface, B>
37 using Base = DifferentiableFunctionWrapperImplementation<Signature, DerivativeInterface, B>;
41 virtual void bind(
const LocalContext& context)
43 this->get().bind(context);
51 virtual const LocalContext& localContext()
const
53 return this->get().localContext();
Dune namespace.
Definition: alignedallocator.hh:11