DUNE PDELab (2.7)
callable.hh
Wrap a Dune::VirtualFunction into a callable object.
Definition: callable.hh:38
Range operator()(const Domain &x) const
Forward operator() to F::evaluate()
Definition: callable.hh:70
CallableFunctionWrapper(const F &f)
Instanciate from reference to f.
Definition: callable.hh:50
CallableFunctionWrapper(const std::shared_ptr< const F > &f)
Instanciate from shared_ptr to f.
Definition: callable.hh:61
Simple base class templates for functions.
CallableFunctionWrapper< F > callable(const std::shared_ptr< F > &fp)
Create a callable object from shared_ptr<F>
Definition: callable.hh:137
shared_ptr< T > stackobject_to_shared_ptr(T &t)
Create a shared_ptr for a stack-allocated object.
Definition: shared_ptr.hh:75
![Creative Commons License](https://i.creativecommons.org/l/by-sa/4.0/80x15.png)