|
Gaudi Framework, version v21r11 |
| Home | Generated: 30 Sep 2010 |
#include <GSLFunAdapters.h>
Public Types | |
| typedef double(* | Function )(double, gsl_mode_t) |
| the actual type of the function | |
Public Member Functions | |
| GSLFunctionWithMode (Function fun, const gsl_mode_t &mode) | |
| mandatory macro from CLHEP/GenericFunctions | |
| GSLFunctionWithMode (const GSLFunctionWithMode &) | |
| copy constructor | |
| virtual | ~GSLFunctionWithMode () |
| destructor | |
| virtual double | operator() (double x) const |
| the main method | |
| virtual double | operator() (const Argument &x) const |
| virtual bool | hasAnalyticDerivative () const |
| virtual unsigned int | dimensionality () const |
| Genfun::Derivative | partial (unsigned int i) const |
| Function | function () const |
| get the function itself | |
| const gsl_mode_t & | mode () const |
| get the current mode | |
Private Member Functions | |
| GSLFunctionWithMode () | |
| GSLFunctionWithMode & | operator= (const GSLFunctionWithError &) |
Private Attributes | |
| Function | m_function |
| gsl_mode_t * | m_mode |
Definition at line 70 of file GSLFunAdapters.h.
| typedef double(* Genfun::GaudiMathImplementation::GSLFunctionWithMode::Function)(double, gsl_mode_t) |
the actual type of the function
| Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | Function | fun, | |
| const gsl_mode_t & | mode | |||
| ) |
mandatory macro from CLHEP/GenericFunctions
constructor with pointer to function
| Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | const GSLFunctionWithMode & | func | ) |
copy constructor
Definition at line 102 of file GSLFunAdapters.cpp.
00103 : AbsFunction() 00104 , m_function ( func.m_function ) 00105 , m_mode ( new gsl_mode_t () ) 00106 { 00107 *m_mode = *(func.m_mode) ; 00108 }
| Genfun::GaudiMathImplementation::GSLFunctionWithMode::~GSLFunctionWithMode | ( | ) | [virtual] |
| Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | ) | [private] |
| double Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator() | ( | double | x | ) | const [virtual] |
the main method
Definition at line 114 of file GSLFunAdapters.cpp.
00115 { return (*m_function)( x , *m_mode ) ; }
| virtual double Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator() | ( | const Argument & | x | ) | const [virtual] |
| virtual bool Genfun::GaudiMathImplementation::GSLFunctionWithMode::hasAnalyticDerivative | ( | ) | const [inline, virtual] |
| virtual unsigned int Genfun::GaudiMathImplementation::GSLFunctionWithMode::dimensionality | ( | ) | const [inline, virtual] |
| Genfun::Derivative Genfun::GaudiMathImplementation::GSLFunctionWithMode::partial | ( | unsigned int | i | ) | const |
Definition at line 122 of file GSLFunAdapters.cpp.
00123 { 00124 if( i >= 1 ) 00125 { 00126 const AbsFunction& aux = GaudiMath::Constant( 0 , 1 ) ; 00127 return Genfun::FunctionNoop( &aux ) ; 00128 }; 00129 const AbsFunction& aux = GaudiMath::Derivative( *this , i) ; 00130 return Genfun::FunctionNoop( &aux ) ; 00131 }
| GSLFunctionWithMode::Function Genfun::GaudiMathImplementation::GSLFunctionWithMode::function | ( | ) | const |
get the function itself
Definition at line 133 of file GSLFunAdapters.cpp.
00134 { return m_function ; }
| const gsl_mode_t & Genfun::GaudiMathImplementation::GSLFunctionWithMode::mode | ( | ) | const |
| GSLFunctionWithMode& Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator= | ( | const GSLFunctionWithError & | ) | [private] |
Definition at line 102 of file GSLFunAdapters.h.
gsl_mode_t* Genfun::GaudiMathImplementation::GSLFunctionWithMode::m_mode [private] |
Definition at line 103 of file GSLFunAdapters.h.