![]() |
Rosetta
2021.16
|
#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 |
Public Member Functions inherited from numeric::expression_parser::ExpressionCreator | |
| ExpressionCreator () | |
| ~ExpressionCreator () override | |
| void | visit (ArithmeticASTExpression const &) override |
| void | visit (ArithmeticASTAndClause const &) override |
| void | visit (ArithmeticASTOrClause 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 (ArithmeticASTRestAndClause const &) override |
| void | visit (ArithmeticASTRestOrClause 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... | |
Public Member Functions inherited from numeric::expression_parser::ASTVisitor | |
| ~ASTVisitor () override | |
| Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
Public Member Functions inherited from utility::VirtualBase | |
| VirtualBase ()=default | |
| Default constructor. More... | |
| virtual | ~VirtualBase ()=default |
| The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
| VirtualBase (VirtualBase const &)=default | |
| VirtualBase (VirtualBase &&)=default | |
| VirtualBase & | operator= (VirtualBase const &)=default |
| VirtualBase & | operator= (VirtualBase &&)=default |
Private Attributes | |
| std::map< std::string, VariableExpressionOP > | variables_ |
|
default |
| 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().
1.8.7