ROOT  6.06/09
Reference Guide
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 ()
 
void SetFuncPointer (GSLFuncPointer f)
 set in the GSL C struct the pointer to the function evaluation More...
 
void SetParams (void *p)
 set in the GSL C struct the extra-object pointer More...
 
template<class FuncType >
void SetFunction (const FuncType &f)
 fill the GSL C struct from a generic C++ callable object implementing operator() More...
 
gsl_functionGetFunc ()
 
GSLFuncPointer FunctionPtr ()
 
double operator() (double x)
 
bool IsValid ()
 check if function is valid (has been set) More...
 

Private Attributes

gsl_function fFunc
 

#include </mnt/vdb/lsf/workspace/root-makedoc-v606/rootspi/rdoc/src/v6-06-00-patches/math/mathmore/src/GSLFunctionWrapper.h>

+ Collaboration diagram for ROOT::Math::GSLFunctionWrapper:

Constructor & Destructor Documentation

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

Definition at line 61 of file GSLFunctionWrapper.h.

Member Function Documentation

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

Definition at line 85 of file GSLFunctionWrapper.h.

gsl_function* ROOT::Math::GSLFunctionWrapper::GetFunc ( )
inline
bool ROOT::Math::GSLFunctionWrapper::IsValid ( )
inline
double ROOT::Math::GSLFunctionWrapper::operator() ( double  x)
inline

Definition at line 88 of file GSLFunctionWrapper.h.

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

Member Data Documentation

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

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