Interface of an Expression Evaluator. More...
#include <ExprEvalInterface.h>
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 () |
Interface of an Expression Evaluator.
Definition at line 9 of file ExprEvalInterface.h.
ExprEvalInterface::~ExprEvalInterface | ( | ) | [virtual] |
Definition at line 4 of file ExprEvalInterface.cc.
{ }
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] |
evaluate an expression expr inside the local namespace
Implemented in ClhepEvaluator.
Referenced by DDLRotationAndReflection::isLeftHanded(), DDLRotationAndReflection::makeX(), DDLRotationAndReflection::makeY(), DDLRotationAndReflection::makeZ(), DDLBooleanSolid::processElement(), DDLTrapezoid::processElement(), DDLCone::processElement(), DDLDivision::processElement(), DDLCompositeMaterial::processElement(), DDLEllipsoid::processElement(), DDLRotationAndReflection::processElement(), DDLOrb::processElement(), DDLPseudoTrap::processElement(), DDLPosPart::processElement(), DDLElementaryMaterial::processElement(), DDLTubs::processElement(), DDLBox::processElement(), DDLAlgoPosPart::processElement(), DDLParallelepiped::processElement(), DDLPolyGenerator::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLTorus::processElement(), DDLRotationByAxis::processOne(), regressionTest_first(), and regressionTest_setup().
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().