3 #ifndef DUNE_FUNCTIONS_COMMON_CALLABLE_HH 4 #define DUNE_FUNCTIONS_COMMON_CALLABLE_HH 9 #include <dune/common/function.hh> 10 #include <dune/common/shared_ptr.hh> 39 typedef typename F::Range Range;
40 typedef typename F::Domain Domain;
52 f_ = Dune::stackobject_to_shared_ptr(f);
78 std::shared_ptr<const F> f_;
147 #endif //DUNE_FUNCTIONS_COMMON_CALLABLE_HH CallableFunctionWrapper(const F &f)
Instanciate from reference to f.
Definition: callable.hh:50
Definition: polynomial.hh:7
Range operator()(const Domain &x) const
Forward operator() to F::evaluate()
Definition: callable.hh:70
CallableFunctionWrapper< F > callable(const F &f)
Create a callable object from some Dune::VirtualFunction.
Definition: callable.hh:105
CallableFunctionWrapper(const std::shared_ptr< const F > &f)
Instanciate from shared_ptr to f.
Definition: callable.hh:61
Wrap a Dune::VirtualFunction into a callable object.
Definition: callable.hh:37