CMS 3D CMS Logo

Public Member Functions

ExprEvalInterface Class Reference

Interface of an Expression Evaluator. More...

#include <ExprEvalInterface.h>

Inheritance diagram for ExprEvalInterface:
ClhepEvaluator

List of all members.

Public Member Functions

virtual void clear ()=0
 access to the dictionary (namespace,name)->value
virtual double eval (const std::string &ns, const std::string &expr)=0
 evaluate an expression expr inside the local namespace
virtual bool isDefined (const std::string &ns, const std::string &name)=0
 check whether a variable is already defined or not
virtual void set (const std::string &ns, const std::string &name, const std::string &valueExpr)=0
 put a new variable named 'namespace:name' into the dictionary of the evaluator
virtual ~ExprEvalInterface ()

Detailed Description

Interface of an Expression Evaluator.

Definition at line 9 of file ExprEvalInterface.h.


Constructor & Destructor Documentation

ExprEvalInterface::~ExprEvalInterface ( ) [virtual]

Definition at line 4 of file ExprEvalInterface.cc.

{ }

Member Function Documentation

virtual void ExprEvalInterface::clear ( ) [pure virtual]

access to the dictionary (namespace,name)->value

if not implemented in a sub-class it returns 0 and does nothing to result clear the dictionary of the evaluator

Implemented in ClhepEvaluator.

virtual double ExprEvalInterface::eval ( const std::string &  ns,
const std::string &  expr 
) [pure virtual]
virtual bool ExprEvalInterface::isDefined ( const std::string &  ns,
const std::string &  name 
) [pure virtual]

check whether a variable is already defined or not

Implemented in ClhepEvaluator.

virtual void ExprEvalInterface::set ( const std::string &  ns,
const std::string &  name,
const std::string &  valueExpr 
) [pure virtual]

put a new variable named 'namespace:name' into the dictionary of the evaluator

Implemented in ClhepEvaluator.

Referenced by regressionTest_setup(), and DDLSAX2ExpressionHandler::startElement().