Logo ROOT   6.10/09
Reference Guide
List of all members | Public Types | Public Member Functions | Private Attributes | List of all members

Param Functor class for Multidimensional functions.

It is used to wrap in a very simple and convenient way any other C++ callable object (implemention double operator( const double *, const double * ) ) or a member function with the correct signature, like Foo::EvalPar(const double *, const double *)

Definition at line 209 of file ParamFunctor.h.

Public Types

typedef double(* FreeFunc) (double *, double *)
 
typedef ParamFunctionBase Impl
 

Public Member Functions

 ParamFunctor ()
 Default constructor. More...
 
template<class PtrObj , typename MemFn >
 ParamFunctor (const PtrObj &p, MemFn memFn)
 construct from a pointer to member function (multi-dim type) More...
 
template<typename Func >
 ParamFunctor (const Func &f)
 construct from another generic Functor of multi-dimension More...
 
 ParamFunctor (FreeFunc f)
 
 ParamFunctor (const ParamFunctor &rhs)
 Copy constructor. More...
 
virtual ~ParamFunctor ()
 Destructor (no operations) More...
 
bool Empty () const
 
voidGetImpl ()
 
double operator() (double *x, double *p)
 
ParamFunctoroperator= (const ParamFunctor &rhs)
 Assignment operator. More...
 
void SetFunction (Impl *f)
 

Private Attributes

ImplfImpl
 

#include <Math/ParamFunctor.h>

Member Typedef Documentation

◆ FreeFunc

typedef double(* ROOT::Math::ParamFunctor::FreeFunc) (double *, double *)

Definition at line 244 of file ParamFunctor.h.

◆ Impl

Definition at line 214 of file ParamFunctor.h.

Constructor & Destructor Documentation

◆ ParamFunctor() [1/5]

ROOT::Math::ParamFunctor::ParamFunctor ( )
inline

Default constructor.

Definition at line 220 of file ParamFunctor.h.

◆ ParamFunctor() [2/5]

template<class PtrObj , typename MemFn >
ROOT::Math::ParamFunctor::ParamFunctor ( const PtrObj &  p,
MemFn  memFn 
)
inline

construct from a pointer to member function (multi-dim type)

Definition at line 227 of file ParamFunctor.h.

◆ ParamFunctor() [3/5]

template<typename Func >
ROOT::Math::ParamFunctor::ParamFunctor ( const Func f)
inlineexplicit

construct from another generic Functor of multi-dimension

Definition at line 237 of file ParamFunctor.h.

◆ ParamFunctor() [4/5]

ROOT::Math::ParamFunctor::ParamFunctor ( FreeFunc  f)
inline

Definition at line 245 of file ParamFunctor.h.

◆ ~ParamFunctor()

virtual ROOT::Math::ParamFunctor::~ParamFunctor ( )
inlinevirtual

Destructor (no operations)

Definition at line 254 of file ParamFunctor.h.

◆ ParamFunctor() [5/5]

ROOT::Math::ParamFunctor::ParamFunctor ( const ParamFunctor rhs)
inline

Copy constructor.

Definition at line 261 of file ParamFunctor.h.

Member Function Documentation

◆ Empty()

bool ROOT::Math::ParamFunctor::Empty ( ) const
inline

Definition at line 297 of file ParamFunctor.h.

◆ GetImpl()

void* ROOT::Math::ParamFunctor::GetImpl ( )
inline

Definition at line 288 of file ParamFunctor.h.

◆ operator()()

double ROOT::Math::ParamFunctor::operator() ( double *  x,
double *  p 
)
inline

Definition at line 291 of file ParamFunctor.h.

◆ operator=()

ParamFunctor& ROOT::Math::ParamFunctor::operator= ( const ParamFunctor rhs)
inline

Assignment operator.

Definition at line 272 of file ParamFunctor.h.

◆ SetFunction()

void ROOT::Math::ParamFunctor::SetFunction ( Impl f)
inline

Definition at line 300 of file ParamFunctor.h.

Member Data Documentation

◆ fImpl

Impl* ROOT::Math::ParamFunctor::fImpl
private

Definition at line 308 of file ParamFunctor.h.


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