| # Gaudi Framework, version v23r1 |

Home |  | Generated: Wed Feb 29 2012

Public Types | Public Member Functions | Private Member Functions | Private Attributes

# Genfun::GaudiMathImplementation::GSLFunctionWithMode Class Reference

`#include <GSLFunAdapters.h>`

List of all members.

## 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

## Detailed Description

Definition at line 70 of file GSLFunAdapters.h.

## Member Typedef Documentation

typedef double(* Genfun::GaudiMathImplementation::GSLFunctionWithMode::Function)(double, gsl_mode_t)

the actual type of the function

Definition at line 74 of file GSLFunAdapters.h.

## Constructor & Destructor Documentation

Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | GSLFunctionWithMode::Function | function,
|  | const gsl_mode_t & | mode
| ) |  |

mandatory macro from CLHEP/GenericFunctions

constructor with pointer to function

Definition at line 92 of file GSLFunAdapters.cpp.

          : AbsFunction()
          , m_function ( function )
          , m_mode     ( new gsl_mode_t() )
        {
          *m_mode = mod ;
        }

Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | const GSLFunctionWithMode & | func ) |

copy constructor

Definition at line 102 of file GSLFunAdapters.cpp.

          : AbsFunction()
          , m_function ( func.m_function   )
          , m_mode     ( new gsl_mode_t () )
        {
          *m_mode = *(func.m_mode) ;
        }

Genfun::GaudiMathImplementation::GSLFunctionWithMode::~GSLFunctionWithMode | ( | ) | `[virtual]`

destructor

Definition at line 110 of file GSLFunAdapters.cpp.

        { if ( 0 != m_mode ) { delete m_mode  ; } }

Genfun::GaudiMathImplementation::GSLFunctionWithMode::GSLFunctionWithMode | ( | ) | `[private]`

## Member Function Documentation

virtual unsigned int Genfun::GaudiMathImplementation::GSLFunctionWithMode::dimensionality | ( | ) | const`[inline, virtual]`

Definition at line 90 of file GSLFunAdapters.h.

    { return    1 ; }

GSLFunctionWithMode::Function Genfun::GaudiMathImplementation::GSLFunctionWithMode::function | ( | ) | const

get the function itself

Definition at line 133 of file GSLFunAdapters.cpp.

        { return  m_function      ; }

virtual bool Genfun::GaudiMathImplementation::GSLFunctionWithMode::hasAnalyticDerivative | ( | ) | const`[inline, virtual]`

Definition at line 89 of file GSLFunAdapters.h.

    { return true ; }

const gsl_mode_t & Genfun::GaudiMathImplementation::GSLFunctionWithMode::mode | ( | ) | const

get the current mode

Definition at line 136 of file GSLFunAdapters.cpp.

        { return *m_mode          ; }

virtual double Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator() | ( | const Argument & | x ) | const`[virtual]`

double Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator() | ( | double | x ) | const`[virtual]`

the main method

Definition at line 114 of file GSLFunAdapters.cpp.

        { return (*m_function)( x , *m_mode ) ; }

GSLFunctionWithMode& Genfun::GaudiMathImplementation::GSLFunctionWithMode::operator= | ( | const GSLFunctionWithError & | ) | `[private]`

Genfun::Derivative Genfun::GaudiMathImplementation::GSLFunctionWithMode::partial | ( | unsigned int | i ) | const

Definition at line 122 of file GSLFunAdapters.cpp.

        {
          if( i >= 1 )
          {
            const AbsFunction& aux = GaudiMath::Constant( 0 , 1 ) ;
            return Genfun::FunctionNoop( &aux ) ;
          };
          const AbsFunction& aux = GaudiMath::Derivative( *this , i) ;
          return Genfun::FunctionNoop( &aux ) ;
        }

## Member Data Documentation

Function Genfun::GaudiMathImplementation::GSLFunctionWithMode::m_function`[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.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiGSL/GaudiMath/GSLFunAdapters.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v23r1/GaudiGSL/src/Lib/GSLFunAdapters.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines