![]() |
Rosetta
3.8
|
#include <Arithmetic.hh>
Public Member Functions | |
SimpleExpressionCreator () | |
SimpleExpressionCreator (std::list< std::string > const &varnames) | |
void | add_variable (std::string const &varname) |
ExpressionCOP | handle_variable_expression (ArithmeticASTValue const &) override |
Factory method to be implemented by derived classes which may wish to handle variable expressions in a specific manner. More... | |
VariableExpressionOP | get_variable (std::string const &varname) |
std::map< std::string, VariableExpressionOP > | variables () const |
![]() | |
ExpressionCreator () | |
~ExpressionCreator () override | |
void | visit (ArithmeticASTExpression const &) override |
void | visit (ArithmeticASTFunction const &) override |
void | visit (ArithmeticASTTerm const &) override |
void | visit (ArithmeticASTFactor const &) override |
void | visit (ArithmeticASTValue const &) override |
void | visit (ArithmeticASTRestTerm const &) override |
void | visit (ArithmeticASTRestExpression const &) override |
void | visit (ArithmeticASTNode const &) override |
ExpressionCOP | create_expression_tree (ArithmeticASTExpression const &) |
virtual ExpressionCOP | handle_function_expression (FunctionTokenCOP function, utility::vector1< ExpressionCOP > const &args) |
Factory method to be implemented by derived classes which may wish to handle function expressions in a specific manner. More... | |
![]() | |
~ASTVisitor () override | |
Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
![]() | |
ReferenceCount () | |
Default constructor. More... | |
virtual | ~ReferenceCount () |
Private Attributes | |
std::map< std::string, VariableExpressionOP > | variables_ |
Additional Inherited Members | |
![]() | |
typedef platform::Size | Size |
typedef platform::Size | size_type |
numeric::expression_parser::SimpleExpressionCreator::SimpleExpressionCreator | ( | ) |
numeric::expression_parser::SimpleExpressionCreator::SimpleExpressionCreator | ( | std::list< std::string > const & | varnames | ) |
References add_variable().
void numeric::expression_parser::SimpleExpressionCreator::add_variable | ( | std::string const & | varname | ) |
References utility_exit_with_message, and variables_.
Referenced by SimpleExpressionCreator().
VariableExpressionOP numeric::expression_parser::SimpleExpressionCreator::get_variable | ( | std::string const & | varname | ) |
References utility_exit_with_message, and variables_.
|
overridevirtual |
Factory method to be implemented by derived classes which may wish to handle variable expressions in a specific manner.
Factory method to be implemented by derived classes which may wish to handle variable expressions differently.
Reimplemented from numeric::expression_parser::ExpressionCreator.
References numeric::expression_parser::ArithmeticASTValue::is_literal(), numeric::expression_parser::ArithmeticASTValue::literal_value(), utility::to_string(), utility_exit_with_message, numeric::expression_parser::ArithmeticASTValue::variable_name(), and variables_.
std::map< std::string, VariableExpressionOP > numeric::expression_parser::SimpleExpressionCreator::variables | ( | ) | const |
References variables_.
|
private |
Referenced by add_variable(), get_variable(), handle_variable_expression(), and variables().