Rosetta  2021.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
numeric::expression_parser::ArithmeticASTValue Class Reference

either a variable or a literal. More...

#include <Arithmetic.hh>

Inheritance diagram for numeric::expression_parser::ArithmeticASTValue:
Inheritance graph

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
VirtualBaseoperator= (VirtualBase const &)=default
VirtualBaseoperator= (VirtualBase &&)=default

Private Attributes

bool is_literal_
numeric::Real literal_value_
std::string variable_name_

Detailed Description

either a variable or a literal.

Constructor & Destructor Documentation

numeric::expression_parser::ArithmeticASTValue::ArithmeticASTValue ( )
numeric::expression_parser::ArithmeticASTValue::~ArithmeticASTValue ( )

Member Function Documentation

bool numeric::expression_parser::ArithmeticASTValue::is_literal ( ) const
numeric::Real numeric::expression_parser::ArithmeticASTValue::literal_value ( ) const
void numeric::expression_parser::ArithmeticASTValue::parse ( TokenSet tokens)
std::string numeric::expression_parser::ArithmeticASTValue::variable_name ( ) const
void numeric::expression_parser::ArithmeticASTValue::visit ( ASTVisitor visitor) const

Member Data Documentation

bool numeric::expression_parser::ArithmeticASTValue::is_literal_
numeric::Real numeric::expression_parser::ArithmeticASTValue::literal_value_

Referenced by literal_value(), and parse().

std::string numeric::expression_parser::ArithmeticASTValue::variable_name_

Referenced by parse(), and variable_name().

The documentation for this class was generated from the following files: