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 59 of file Expression.h.

Constructor & Destructor Documentation

funct::FunctExpression::FunctExpression ( )
inline

Definition at line 60 of file Expression.h.

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

Definition at line 62 of file Expression.h.

62 : _f(new FunctExpressionT<F>(f)) { }
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:67
double f[11][100]
funct::FunctExpression::FunctExpression ( const FunctExpression e)
inline

Definition at line 63 of file Expression.h.

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

Member Function Documentation

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

Definition at line 65 of file Expression.h.

65 { return (*_f)(x); }
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:67
FunctExpression& funct::FunctExpression::operator= ( const FunctExpression e)
inline

Definition at line 64 of file Expression.h.

References _f.

64 { _f.reset(e._f->clone()); return *this; }
std::unique_ptr< AbsFunctExpression > _f
Definition: Expression.h:67

Member Data Documentation

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

Definition at line 67 of file Expression.h.

Referenced by operator=().