21 #ifndef MYGSL_PLAIN_FUNCTION_WRAPPER_H 22 #define MYGSL_PLAIN_FUNCTION_WRAPPER_H 74 virtual double _eval(
double x_)
const;
87 #endif // MYGSL_PLAIN_FUNCTION_WRAPPER_H A composite function from two unary functors.
virtual ~plain_function_wrapper()
Destructor.
virtual bool is_initialized() const
Check initialization status.
bool has_plain_function() const
Check is the plain function is defined.
void set_plain_function(plain_function_type)
Set the address of the plain function.
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
virtual void initialize(const datatools::properties &config_, const unary_function_dict_type &functors_)
Initialization from a container of parameters and a dictionary of functors.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
virtual double _eval(double x_) const
Evaluation method.
std::map< std::string, unary_function_handle_type > unary_function_dict_type
Alias for dictionary of handles to unary function objects.
Definition: unary_function_utils.h:30
#define MYGSL_UNARY_FUNCTOR_REGISTRATION_INTERFACE(UnaryFunctorClass)
Definition: i_unary_function.h:206
void set_plain_function_by_name(const std::string &)
Set the plain function by name.
virtual void reset()
Reset the functor.
plain_function_wrapper()
Default constructor.
double(* plain_function_type)(double)
Typedef for a simple function C-style function :
Definition: math.h:32
Wrapper for C/C++ plain function with signature 'double (*)(double)'.
Definition: plain_function_wrapper.h:36