CMS 3D CMS Logo

Public Member Functions | Private Attributes

funct::Expression Struct Reference

#include <Expression.h>

List of all members.

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.

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

Definition at line 30 of file Expression.h.

: _f(new ExpressionT<F>(f)) { }
funct::Expression::Expression ( const Expression e) [inline]

Definition at line 31 of file Expression.h.

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

Member Function Documentation

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

Definition at line 33 of file Expression.h.

References _f.

{ return (*_f)(); }
Expression& funct::Expression::operator= ( const Expression e) [inline]

Definition at line 32 of file Expression.h.

References _f.

{ _f.reset(e._f->clone()); return *this; }
std::ostream& funct::Expression::print ( std::ostream &  cout) const [inline]

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