CMS 3D CMS Logo

funct::Expression Struct Reference

#include <PhysicsTools/Utilities/interface/Expression.h>

List of all members.

Public Member Functions

 Expression (const Expression &e)
template<typename F>
 Expression (const F &f)
 Expression ()
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.

00028 { }

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

Definition at line 30 of file Expression.h.

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

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

Definition at line 31 of file Expression.h.

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


Member Function Documentation

double funct::Expression::operator() ( void   )  const [inline]

Definition at line 33 of file Expression.h.

References _f.

00033 { return (*_f)(); }

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

Definition at line 32 of file Expression.h.

References _f.

00032 { _f.reset(e._f->clone()); return *this; }

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, null_var >::print(), funct::Function< X1, X2, X3 >::print(), and funct::Function< X1, null_var, null_var >::print().

00034 { return _f->print(cout); }


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().


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:01 2009 for CMSSW by  doxygen 1.5.4