CMS 3D CMS Logo

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

#include <Expression.h>

Public Member Functions

 Expression ()
 
 Expression (const Expression &e)
 
template<typename F >
 Expression (const F &f)
 
double operator() () const
 
Expressionoperator= (const Expression &e)
 
std::ostream & print (std::ostream &cout) const
 

Private Attributes

std::unique_ptr< AbsExpression_f
 

Detailed Description

Definition at line 28 of file Expression.h.

Constructor & Destructor Documentation

◆ Expression() [1/3]

funct::Expression::Expression ( )
inline

Definition at line 29 of file Expression.h.

29 {}

◆ Expression() [2/3]

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

Definition at line 31 of file Expression.h.

31 : _f(new ExpressionT<F>(f)) {}

◆ Expression() [3/3]

funct::Expression::Expression ( const Expression e)
inline

Definition at line 32 of file Expression.h.

32 : _f(e._f->clone()) {}

Member Function Documentation

◆ operator()()

double funct::Expression::operator() ( ) const
inline

Definition at line 37 of file Expression.h.

37 { return (*_f)(); }

References _f.

◆ operator=()

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

Definition at line 33 of file Expression.h.

33  {
34  _f.reset(e._f->clone());
35  return *this;
36  }

References _f, and MillePedeFileConverter_cfg::e.

◆ print()

std::ostream& funct::Expression::print ( std::ostream &  cout) const
inline

Member Data Documentation

◆ _f

std::unique_ptr<AbsExpression> funct::Expression::_f
private

Definition at line 41 of file Expression.h.

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

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
gather_cfg.cout
cout
Definition: gather_cfg.py:144
funct::Expression::_f
std::unique_ptr< AbsExpression > _f
Definition: Expression.h:41
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37