Rosetta Utilities  2014.35
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>

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...
ReferenceCountoperator= (ReferenceCount const &)
 Copy assignment. More...

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: