test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
funct::Expression Struct Reference

#include <Expression.h>

Public Member Functions

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

Private Attributes

std::auto_ptr< AbsExpression_f
 

Detailed Description

Definition at line 27 of file Expression.h.

Constructor & Destructor Documentation

funct::Expression::Expression ( )
inline

Definition at line 28 of file Expression.h.

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

Definition at line 30 of file Expression.h.

30 : _f(new ExpressionT<F>(f)) { }
std::auto_ptr< AbsExpression > _f
Definition: Expression.h:36
double f[11][100]
funct::Expression::Expression ( const Expression e)
inline

Definition at line 31 of file Expression.h.

31 : _f(e._f->clone()) { }
std::auto_ptr< AbsExpression > _f
Definition: Expression.h:36

Member Function Documentation

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

Definition at line 33 of file Expression.h.

References _f.

33 { return (*_f)(); }
std::auto_ptr< AbsExpression > _f
Definition: Expression.h:36
Expression& funct::Expression::operator= ( const Expression e)
inline

Definition at line 32 of file Expression.h.

References _f.

32 { _f.reset(e._f->clone()); return *this; }
std::auto_ptr< AbsExpression > _f
Definition: Expression.h:36
std::ostream& funct::Expression::print ( std::ostream &  cout) const
inline

Definition at line 34 of file Expression.h.

References _f.

Referenced by funct::operator<<(), funct::Function< X1, X2, X3 >::print(), funct::Function< X1, X2, null_var >::print(), and funct::Function< X1, null_var, null_var >::print().

34 { return _f->print(cout); }
std::auto_ptr< AbsExpression > _f
Definition: Expression.h:36
tuple cout
Definition: gather_cfg.py:145

Member Data Documentation

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

Definition at line 36 of file Expression.h.

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