CepGen 1.2.5
Central exclusive processes event generator
|
Wrapper to a 1-dimensional function with optional parameters. More...
#include <CepGen/Utils/FunctionsWrappers.h>
Public Member Functions | |
Function1D (const std::function< double(double)> &func) | |
Function1D (const std::function< double(double, const ParametersList &)> &func) | |
Function1D (const std::function< double(double, void *)> &func) | |
double | operator() (double x, const ParametersList ¶ms=ParametersList()) const |
Call the function with a user collection of parameters. | |
double | operator() (double x, void *obj) const |
Call the function with an unspecified object as parameters. | |
template<typename T > | |
double | operator() (double x, const T &obj) const |
Call the function with a templated object as parameters. | |
operator const std::function< double (double)> &() | |
operator const std::function< double (double, void *)> &() | |
Definition at line 29 of file FunctionsWrappers.h.
|
explicit |
Definition at line 31 of file FunctionsWrappers.h.
|
explicit |
Definition at line 32 of file FunctionsWrappers.h.
|
explicit |
Definition at line 33 of file FunctionsWrappers.h.
operator const std::function< double | ( | double | ) | & |
Definition at line 53 of file FunctionsWrappers.h.
operator const std::function< double | ( | double | , |
void * | |||
) | & |
Definition at line 54 of file FunctionsWrappers.h.
double operator() | ( | double | x, |
const ParametersList & | params = ParametersList() |
||
) | const |
Definition at line 36 of file FunctionsWrappers.h.
double operator() | ( | double | x, |
const T & | obj | ||
) | const |
Definition at line 49 of file FunctionsWrappers.h.
double operator() | ( | double | x, |
void * | obj | ||
) | const |
Definition at line 42 of file FunctionsWrappers.h.