![]() |
Rosetta Utilities
2014.16.56682
|
either a variable or a literal. More...
#include <Arithmetic.hh>
Public Member Functions | |
| ArithmeticASTValue () | |
| ~ArithmeticASTValue () | |
| virtual void | visit (ASTVisitor &visitor) const |
| virtual void | parse (TokenSet &tokens) |
| bool | is_literal () const |
| numeric::Real | literal_value () const |
| std::string | variable_name () const |
Public Member Functions inherited from numeric::expression_parser::ArithmeticASTNode | |
| virtual | ~ArithmeticASTNode () |
| 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 | |
| bool | is_literal_ |
| numeric::Real | literal_value_ |
| std::string | variable_name_ |
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... | |
either a variable or a literal.
| numeric::expression_parser::ArithmeticASTValue::ArithmeticASTValue | ( | ) |
| numeric::expression_parser::ArithmeticASTValue::~ArithmeticASTValue | ( | ) |
| bool numeric::expression_parser::ArithmeticASTValue::is_literal | ( | ) | const |
| numeric::Real numeric::expression_parser::ArithmeticASTValue::literal_value | ( | ) | const |
|
virtual |
References numeric::expression_parser::TokenSet::empty(), is_literal_, numeric::expression_parser::LITERAL, literal_value_, numeric::expression_parser::TokenSet::log_error(), numeric::expression_parser::TokenSet::pop(), numeric::expression_parser::token_type_name(), numeric::expression_parser::TokenSet::top(), utility_exit_with_message, numeric::expression_parser::VARIABLE, and variable_name_.
| std::string numeric::expression_parser::ArithmeticASTValue::variable_name | ( | ) | const |
|
virtual |
Implements numeric::expression_parser::ArithmeticASTNode.
References numeric::expression_parser::ASTVisitor::visit().
|
private |
Referenced by is_literal(), literal_value(), parse(), and variable_name().
|
private |
Referenced by literal_value(), and parse().
|
private |
Referenced by parse(), and variable_name().
1.8.7