Bayeux  3.4.1
Core Foundation library for SuperNEMO
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
math.h File Reference

A composite function from two unary functors. More...

#include <string>
#include <map>
#include <iostream>

Go to the source code of this file.

Classes

struct  mygsl::plain_function_entry
 

Namespaces

 mygsl
 Top-level namespace of the Bayeux/mygsl module library.
 

Macros

#define MYGSL_MATH_REGISTER_FUNCTION(FunctionName, FunctionAddress, FunctionType)
 

Typedefs

typedef double(* mygsl::plain_function_type) (double)
 Typedef for a simple function C-style function : More...
 
typedef double(* mygsl::plain_function_with_parameters_type) (double, void *)
 Typedef for a function C-style function with anonymous parameters : More...
 
typedef std::map< std::string, plain_function_entry > mygsl::plain_function_dict_type
 Type alias for a dictionary of registered plain functions. More...
 

Enumerations

enum  mygsl::plain_function_flag { mygsl::PLAIN_FUNCTION_INVALID = 0, mygsl::PLAIN_FUNCTION_SIMPLE = 1, mygsl::PLAIN_FUNCTION_WITH_PARAMS = 2 }
 brief Describe the signature of function More...
 

Functions

void mygsl::basic_plain_function_registration (plain_function_dict_type &dict_)
 Basic registration of some plain functions in a dictionary. More...
 
void mygsl::register_plain_function_simple (plain_function_dict_type &dict_, const std::string &name_, const plain_function_type &func_)
 Registration of a plain simple function. More...
 
void mygsl::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. More...
 
void mygsl::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. More...
 
plain_function_dict_type & mygsl::grab_plain_function_dict ()
 
const plain_function_dict_type & mygsl::get_plain_function_dict ()
 
bool mygsl::plain_function_is_known (const std::string &name_)
 
bool mygsl::is_plain_function_simple (const std::string &name_)
 
bool mygsl::is_plain_function_with_params (const std::string &name_)
 
plain_function_type mygsl::get_simple_function (const std::string &name_)
 

Detailed Description

A composite function from two unary functors.

Macro Definition Documentation

◆ MYGSL_MATH_REGISTER_FUNCTION

#define MYGSL_MATH_REGISTER_FUNCTION (   FunctionName,
  FunctionAddress,
  FunctionType 
)
Value:
{ \
if (FunctionType == mygsl::PLAIN_FUNCTION_SIMPLE) { \
register_plain_function_simple(mygsl::grab_plain_function_dict(), FunctionName, FunctionAddress); \
} else if (FunctionType == mygsl::PLAIN_FUNCTION_WITH_PARAMS) { \
register_plain_function_with_params(mygsl::grab_plain_function_dict(), FunctionName, FunctionAddress); \
} \
} \
plain_function_dict_type & grab_plain_function_dict()
Simple plain function.
Definition: math.h:40
Simple plain function.
Definition: math.h:41