Logo ROOT   6.16/01
Reference Guide
List of all members | Public Member Functions | Private Attributes | List of all members
ROOT::Math::GSLFunctionWrapper Class Reference

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_functionGetFunc ()
 
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
 

#include </home/sftnight/build/workspace/root-makedoc-v616/rootspi/rdoc/src/v6-16-00-patches/math/mathmore/src/GSLFunctionWrapper.h>

Constructor & Destructor Documentation

◆ GSLFunctionWrapper()

ROOT::Math::GSLFunctionWrapper::GSLFunctionWrapper ( )
inline

Definition at line 61 of file GSLFunctionWrapper.h.

Member Function Documentation

◆ FunctionPtr()

GSLFuncPointer ROOT::Math::GSLFunctionWrapper::FunctionPtr ( )
inline

Definition at line 85 of file GSLFunctionWrapper.h.

◆ GetFunc()

gsl_function * ROOT::Math::GSLFunctionWrapper::GetFunc ( )
inline

Definition at line 83 of file GSLFunctionWrapper.h.

◆ IsValid()

bool ROOT::Math::GSLFunctionWrapper::IsValid ( )
inline

check if function is valid (has been set)

Definition at line 91 of file GSLFunctionWrapper.h.

◆ operator()()

double ROOT::Math::GSLFunctionWrapper::operator() ( double  x)
inline

Definition at line 88 of file GSLFunctionWrapper.h.

◆ SetFuncPointer()

void ROOT::Math::GSLFunctionWrapper::SetFuncPointer ( GSLFuncPointer  f)
inline

set in the GSL C struct the pointer to the function evaluation

Definition at line 68 of file GSLFunctionWrapper.h.

◆ SetFunction()

template<class FuncType >
void ROOT::Math::GSLFunctionWrapper::SetFunction ( const FuncType &  f)
inline

fill the GSL C struct from a generic C++ callable object implementing operator()

Definition at line 76 of file GSLFunctionWrapper.h.

◆ SetParams()

void ROOT::Math::GSLFunctionWrapper::SetParams ( void p)
inline

set in the GSL C struct the extra-object pointer

Definition at line 71 of file GSLFunctionWrapper.h.

Member Data Documentation

◆ fFunc

gsl_function ROOT::Math::GSLFunctionWrapper::fFunc
private

Definition at line 96 of file GSLFunctionWrapper.h.

Libraries for ROOT::Math::GSLFunctionWrapper:
[legend]

The documentation for this class was generated from the following file: