![]() |
Rosetta Utilities
2014.16.56682
|
#include <Arithmetic.hh>
Public Member Functions | |
| SimpleExpressionCreator () | |
| SimpleExpressionCreator (std::list< std::string > const &varnames) | |
| void | add_variable (std::string const &varname) |
| virtual ExpressionCOP | handle_variable_expression (ArithmeticASTValue const &) |
| 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 () | |
| virtual void | visit (ArithmeticASTExpression const &) |
| virtual void | visit (ArithmeticASTFunction const &) |
| virtual void | visit (ArithmeticASTTerm const &) |
| virtual void | visit (ArithmeticASTFactor const &) |
| virtual void | visit (ArithmeticASTValue const &) |
| virtual void | visit (ArithmeticASTRestTerm const &) |
| virtual void | visit (ArithmeticASTRestExpression const &) |
| virtual void | visit (ArithmeticASTNode const &) |
| 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 | |
| virtual | ~ASTVisitor () |
| Automatically generated virtual destructor for class deriving directly from ReferenceCount. More... | |
Public Member Functions inherited from utility::pointer::ReferenceCount | |
| void | ctor () |
| virtual | ~ReferenceCount () |
| Destructor. More... | |
| Size | ref_count () const |
| Reference count. More... | |
Private Attributes | |
| std::map< std::string, VariableExpressionOP > | variables_ |
Additional Inherited Members | |
Public Types inherited from utility::pointer::ReferenceCount | |
| typedef platform::Size | Size |
| typedef platform::Size | size_type |
Protected Member Functions inherited from utility::pointer::ReferenceCount | |
| ReferenceCount () | |
| Default constructor. More... | |
| ReferenceCount (ReferenceCount const &) | |
| Copy constructor. More... | |
| ReferenceCount & | operator= (ReferenceCount const &) |
| Copy assignment. More... | |
| 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_.
|
virtual |
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