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 bool bound()
const = 0;
30 virtual const LocalContext& localContext()
const = 0;
35template<
class Signature,
class DerivativeInterface,
class LocalContext,
class B>
36class LocalFunctionWrapperImplementation :
37 public DifferentiableFunctionWrapperImplementation<Signature, DerivativeInterface, B>
39 using Base = DifferentiableFunctionWrapperImplementation<Signature, DerivativeInterface, B>;
43 virtual void bind(
const LocalContext& context)
45 this->get().bind(context);
53 virtual bool bound()
const
55 return this->get().bound();
58 virtual const LocalContext& localContext()
const
60 return this->get().localContext();
Dune namespace.
Definition: alignedallocator.hh:13