CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions
ExprEvalInterface Class Referenceabstract

Interface of an Expression Evaluator. More...

#include <ExprEvalInterface.h>

Inheritance diagram for ExprEvalInterface:
ClhepEvaluator

Public Member Functions

virtual void clear ()=0
 access to the dictionary (namespace,name)->value More...
 
virtual double eval (const std::string &ns, const std::string &expr)=0
 evaluate an expression expr inside the local namespace More...
 
virtual bool isDefined (const std::string &ns, const std::string &name)=0
 check whether a variable is already defined or not More...
 
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 More...
 
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.

5 { }

Member Function Documentation

virtual void ExprEvalInterface::clear ( )
pure virtual
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 betterConfigParser.BetterConfigParser::getGeneral(), regressionTest_setup(), and DDLSAX2ExpressionHandler::startElement().