Interface of an Expression Evaluator. More...
#include <ExprEvalInterface.h>
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 () |
Interface of an Expression Evaluator.
Definition at line 9 of file ExprEvalInterface.h.
|
virtual |
Definition at line 4 of file ExprEvalInterface.cc.
|
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.
Referenced by Vispa.Views.WidgetView.WidgetView::closeEvent(), Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), Vispa.Share.FindAlgorithm.FindAlgorithm::findUsingFindDialog(), Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), Vispa.Views.WidgetView.WidgetView::setDataObjects(), BeautifulSoup.Tag::setString(), Vispa.Views.TreeView.TreeView::updateContent(), Vispa.Views.TableView.TableView::updateContent(), Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and Vispa.Views.PropertyView.PropertyView::updateContent().
|
pure virtual |
evaluate an expression expr inside the local namespace
Implemented in ClhepEvaluator.
Referenced by DDLRotationAndReflection::isLeftHanded(), DDLRotationAndReflection::makeX(), DDLRotationAndReflection::makeY(), DDLRotationAndReflection::makeZ(), DDLTubs::processElement(), DDLPseudoTrap::processElement(), DDLTorus::processElement(), DDLTrapezoid::processElement(), DDLCone::processElement(), DDLEllipsoid::processElement(), DDLEllipticalTube::processElement(), DDLSphere::processElement(), DDLParallelepiped::processElement(), DDLOrb::processElement(), DDLBox::processElement(), DDLPolyGenerator::processElement(), DDLElementaryMaterial::processElement(), DDLDivision::processElement(), DDLAlgoPosPart::processElement(), DDLPosPart::processElement(), DDLBooleanSolid::processElement(), DDLRotationAndReflection::processElement(), DDLCompositeMaterial::processElement(), DDLRotationByAxis::processOne(), regressionTest_first(), and regressionTest_setup().
|
pure virtual |
check whether a variable is already defined or not
Implemented in ClhepEvaluator.
|
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().