CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
funct::FunctExpression Struct Reference

#include <Expression.h>

Public Member Functions

 FunctExpression ()
 
template<typename F >
 FunctExpression (const F &f)
 
 FunctExpression (const FunctExpression &e)
 
double operator() (double x) const
 
FunctExpressionoperator= (const FunctExpression &e)
 

Private Attributes

std::unique_ptr< AbsFunctExpression_f
 

Detailed Description

Definition at line 66 of file Expression.h.

Constructor & Destructor Documentation

◆ FunctExpression() [1/3]

funct::FunctExpression::FunctExpression ( )
inline

Definition at line 67 of file Expression.h.

67 {}

◆ FunctExpression() [2/3]

template<typename F >
funct::FunctExpression::FunctExpression ( const F f)
inline

Definition at line 69 of file Expression.h.

69 : _f(new FunctExpressionT<F>(f)) {}
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:78
double f[11][100]

◆ FunctExpression() [3/3]

funct::FunctExpression::FunctExpression ( const FunctExpression e)
inline

Definition at line 70 of file Expression.h.

70 : _f(e._f->clone()) {}
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:78

Member Function Documentation

◆ operator()()

double funct::FunctExpression::operator() ( double  x) const
inline

Definition at line 75 of file Expression.h.

References _f, and x.

75 { return (*_f)(x); }
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:78

◆ operator=()

FunctExpression& funct::FunctExpression::operator= ( const FunctExpression e)
inline

Definition at line 71 of file Expression.h.

References _f, and MillePedeFileConverter_cfg::e.

71  {
72  _f.reset(e._f->clone());
73  return *this;
74  }
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:78

Member Data Documentation

◆ _f

std::unique_ptr<AbsFunctExpression> funct::FunctExpression::_f
private

Definition at line 78 of file Expression.h.

Referenced by operator()(), and operator=().