ROOT 6.14/05 Reference Guide |
Wrapper class to the gsl_function C structure.
This class to fill the GSL C structure gsl_function with the C++ function objcet. Use the class ROOT::Math::GSLFunctionAdapter to adapt the C++ function object to the right signature (function pointer type) requested by GSL
Definition at line 57 of file GSLFunctionWrapper.h.
Public Member Functions | |
GSLFunctionWrapper () | |
GSLFuncPointer | FunctionPtr () |
gsl_function * | GetFunc () |
bool | IsValid () |
check if function is valid (has been set) More... | |
double | operator() (double x) |
void | SetFuncPointer (GSLFuncPointer f) |
set in the GSL C struct the pointer to the function evaluation More... | |
template<class FuncType > | |
void | SetFunction (const FuncType &f) |
fill the GSL C struct from a generic C++ callable object implementing operator() More... | |
void | SetParams (void *p) |
set in the GSL C struct the extra-object pointer More... | |
Private Attributes | |
gsl_function | fFunc |
|
inline |
Definition at line 61 of file GSLFunctionWrapper.h.
|
inline |
Definition at line 85 of file GSLFunctionWrapper.h.
|
inline |
Definition at line 83 of file GSLFunctionWrapper.h.
|
inline |
check if function is valid (has been set)
Definition at line 91 of file GSLFunctionWrapper.h.
|
inline |
Definition at line 88 of file GSLFunctionWrapper.h.
|
inline |
set in the GSL C struct the pointer to the function evaluation
Definition at line 68 of file GSLFunctionWrapper.h.
|
inline |
fill the GSL C struct from a generic C++ callable object implementing operator()
Definition at line 76 of file GSLFunctionWrapper.h.
set in the GSL C struct the extra-object pointer
Definition at line 71 of file GSLFunctionWrapper.h.
|
private |
Definition at line 96 of file GSLFunctionWrapper.h.