61 const std::string & name_,
66 const std::string & name_,
71 std::ostream & out_ = std::clog,
72 const std::string & title_ =
"",
73 const std::string & indent_ =
"");
89 #define MYGSL_MATH_REGISTER_FUNCTION(FunctionName, FunctionAddress, FunctionType) \ 91 if (FunctionType == mygsl::PLAIN_FUNCTION_SIMPLE) { \ 92 register_plain_function_simple(mygsl::grab_plain_function_dict(), FunctionName, FunctionAddress); \ 93 } else if (FunctionType == mygsl::PLAIN_FUNCTION_WITH_PARAMS) { \ 94 register_plain_function_with_params(mygsl::grab_plain_function_dict(), FunctionName, FunctionAddress); \ 99 #endif // MYGSL_MATH_H plain_function_dict_type & grab_plain_function_dict()
void basic_plain_function_registration(plain_function_dict_type &dict_)
Basic registration of some plain functions in a dictionary.
bool plain_function_is_known(const std::string &name_)
plain_function_flag
brief Describe the signature of function
Definition: math.h:38
plain_function_type func_simple
Address of the simple plain function.
Definition: math.h:49
bool is_plain_function_simple(const std::string &name_)
plain_function_with_parameters_type func_with_params
Address of the plain function with parameters.
Definition: math.h:50
void register_plain_function_with_params(plain_function_dict_type &dict_, const std::string &name_, const plain_function_with_parameters_type &func_with_params_)
Registration of a plain function with parameters.
plain_function_flag type
Type of the plain function.
Definition: math.h:48
Simple plain function.
Definition: math.h:40
double(* plain_function_with_parameters_type)(double, void *)
Typedef for a function C-style function with anonymous parameters :
Definition: math.h:35
Top-level namespace of the Bayeux/mygsl module library.
Definition: base_decay_driver.h:47
std::string name
Definition: math.h:47
Simple plain function.
Definition: math.h:41
plain_function_type get_simple_function(const std::string &name_)
Invalid plain function.
Definition: math.h:39
void register_plain_function_simple(plain_function_dict_type &dict_, const std::string &name_, const plain_function_type &func_)
Registration of a plain simple function.
bool is_plain_function_with_params(const std::string &name_)
const plain_function_dict_type & get_plain_function_dict()
double(* plain_function_type)(double)
Typedef for a simple function C-style function :
Definition: math.h:32
std::map< std::string, plain_function_entry > plain_function_dict_type
Type alias for a dictionary of registered plain functions.
Definition: math.h:54
void tree_dump(const plain_function_dict_type &dict_, std::ostream &out_=std::clog, const std::string &title_="", const std::string &indent_="")
Smart print of a dictionary of registered plain functions.