21 #ifndef MYGSL_FUNCTION_WITH_DOMAIN_H 22 #define MYGSL_FUNCTION_WITH_DOMAIN_H 86 virtual double _eval(
double x_)
const;
100 #endif // MYGSL_FUNCTION_WITH_DOMAIN_H virtual void initialize(const datatools::properties &config_, const unary_function_dict_type &functors_)
Initialization from a container of parameters and a dictionary of functors.
virtual ~function_with_domain()
Destructor.
void set_domain_of_definition(const interval &domain_)
Set the domain of definition.
virtual bool is_in_domain_of_definition(double x_) const
Check is a value is in the domain of definition.
virtual bool is_initialized() const
Check initialization status.
virtual bool has_explicit_domain_of_definition() const
Check the domain of definition.
virtual double _eval(double x_) const
Evaluation.
const interval & get_domain_of_definition() const
Return the domain of definition.
Function with interval/domain of definition.
Definition: function_with_domain.h:36
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
Smart handle to an unary function object.
Definition: unary_function_utils.h:33
function_with_domain()
Default constructor.
bool has_functor() const
Check if the functor is defined.
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
bool has_domain_of_definition() const
Check if the domain of definition is defined.
void set_functor(const i_unary_function &functor_)
Set the functor.
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
virtual void reset()
Reset the functor.
An interval with real bounds.
Definition: interval.h:42