Bayeux  3.4.1
Core Foundation library for SuperNEMO
heaviside_function.h
Go to the documentation of this file.
1 #ifndef MYGSL_HEAVISIDE_FUNCTION_H
2 #define MYGSL_HEAVISIDE_FUNCTION_H
3 
4 // Third party:
5 // - Bayeux/datatools :
7 
8 // This project:
10 
11 namespace mygsl {
12 
14  : public i_unary_function,
16  {
17  public:
18 
25  };
26 
29 
31  virtual ~heaviside_function();
32 
34  void set_convention(convention_type convention_);
35 
38 
40  virtual bool is_initialized() const;
41 
43  virtual void initialize(const datatools::properties & config_,
44  const unary_function_dict_type & functors_);
45 
47  void reset();
48 
50  double get_non_zero_domain_min() const;
51 
53  virtual void tree_dump(std::ostream & out_ = std::clog,
54  const std::string & title_ = "",
55  const std::string & indent_ = "",
56  bool inherit_ = false) const;
57 
58  protected:
59 
61  double _eval(double x_) const;
62 
64  void _set_defaults();
65 
66  private:
67 
69 
72 
73 
75 
76  };
77 
78 } // namespace mygsl
79 
80 #endif // MYGSL_HEAVISIDE_FUNCTION_H
81 
82 // Local Variables: --
83 // mode: c++ --
84 // c-file-style: "gnu" --
85 // tab-width: 2 --
86 // End: --
void set_convention(convention_type convention_)
Set the convention.
#define DATATOOLS_CLONEABLE_DECLARATION(Copyable)
Definition: i_cloneable.h:113
heaviside_function(convention_type convention_=CONVENTION_INVALID)
Default constructor.
void reset()
Reset the function.
double _eval(double x_) const
Evaluation.
convention_type
Definition: heaviside_function.h:19
virtual bool is_initialized() const
Check initialization status.
double get_non_zero_domain_min() const
The minimum bound of the non-zero domain (default is plus infinity)
convention_type get_convention() const
Return the convention.
Definition: heaviside_function.h:13
Definition: heaviside_function.h:20
Abstract interface for unary functions : R -> R.
Definition: i_unary_function.h:44
Definition: heaviside_function.h:21
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
A pure abstract class (interface) for inherited cloneable classes.
Definition: i_cloneable.h:75
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 tree_dump(std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="", bool inherit_=false) const
Smart printing.
void _set_defaults()
Set default attributes values.
Definition: heaviside_function.h:24
virtual ~heaviside_function()
Destructor.
A dictionary of arbitrary properties.
Definition: properties.h:125