Flow123d
3.9.0-9663d1cde
|
Abstract templated explicit functor class. More...
#include <adaptivesimpson.hh>
Public Member Functions | |
FunctorBase () | |
Constructor. More... | |
virtual | ~FunctorBase () |
Destructor. More... | |
virtual Type | operator() (Type x)=0 |
Virtual operator () with type Type . More... | |
Abstract templated explicit functor class.
This class represents an explicit functor. Actual non-abstract functor is obtained by deriving from this class and overriding the operator(). Parameters can be set and used by the methods of ancestor class FunctorCommon.
The template is used to enable computing derivates by FADBAD++ library. The virtual operator() needs to operate both with type double and FADBAD++ types, such as B<double>
and T<double>
.
Simple usage example for function with three parameters:
Definition at line 21 of file adaptivesimpson.hh.
FunctorBase< Type >::FunctorBase |
Constructor.
Definition at line 70 of file functors_impl.hh.
|
virtual |
Destructor.
Definition at line 73 of file functors_impl.hh.
|
pure virtual |
Virtual operator () with type Type
.
Implemented in Interpolant::FuncError_wp1, and Interpolant::FuncError_lp.