![]() |
Rosetta
2021.16
|
either a variable or a literal. More...
#include <Arithmetic.hh>

Public Member Functions | |
| ArithmeticASTValue () | |
| ~ArithmeticASTValue () override | |
| void | visit (ASTVisitor &visitor) const override |
| 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 | |
| ~ArithmeticASTNode () 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 | |
| bool | is_literal_ |
| numeric::Real | literal_value_ |
| std::string | variable_name_ |
either a variable or a literal.
| numeric::expression_parser::ArithmeticASTValue::ArithmeticASTValue | ( | ) |
|
overridedefault |
| 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 |
|
overridevirtual |
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