CMS 3D CMS Logo

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

root::helper::RootFunctionHelper< F, args, Tag > Struct Template Reference

#include <RootFunctionHelper.h>

List of all members.

Public Types

typedef double(* root_function )(const double *, const double *)

Static Public Member Functions

static void addParameter (const boost::shared_ptr< double > &par)
static root_function fun (F &f)

Static Private Member Functions

static double fun_ (const double *x, const double *par)

Static Private Attributes

static RootFunctionAdapter< F,
args > 
adapter_

Detailed Description

template<typename F, unsigned int args, typename Tag = null_t>
struct root::helper::RootFunctionHelper< F, args, Tag >

Definition at line 15 of file RootFunctionHelper.h.


Member Typedef Documentation

template<typename F, unsigned int args, typename Tag = null_t>
typedef double(* root::helper::RootFunctionHelper< F, args, Tag >::root_function)(const double *, const double *)

Definition at line 16 of file RootFunctionHelper.h.


Member Function Documentation

template<typename F, unsigned int args, typename Tag = null_t>
static void root::helper::RootFunctionHelper< F, args, Tag >::addParameter ( const boost::shared_ptr< double > &  par) [inline, static]

Definition at line 21 of file RootFunctionHelper.h.

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_.

Referenced by root::function_t().

                                                                    {
        adapter_.addParameter(par);
      }
template<typename F, unsigned int args, typename Tag = null_t>
static root_function root::helper::RootFunctionHelper< F, args, Tag >::fun ( F &  f) [inline, static]

Definition at line 17 of file RootFunctionHelper.h.

References root::helper::RootFunctionHelper< F, args, Tag >::adapter_, f, and root::helper::RootFunctionHelper< F, args, Tag >::fun_().

Referenced by root::function_t().

                                     { 
        adapter_ = RootFunctionAdapter<F, args>(f); 
        return &fun_; 
      }
template<typename F, unsigned int args, typename Tag = null_t>
static double root::helper::RootFunctionHelper< F, args, Tag >::fun_ ( const double *  x,
const double *  par 
) [inline, static, private]

Member Data Documentation

template<typename F, unsigned int args, typename Tag = null_t>
RootFunctionAdapter< F, args > root::helper::RootFunctionHelper< F, args, Tag >::adapter_ [static, private]