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

#include <Arithmetic.hh>

Inheritance diagram for numeric::expression_parser::LiteralToken:
Inheritance graph
[legend]

Public Member Functions

 LiteralToken ()
 
 LiteralToken (numeric::Real value)
 
TokenType type () const override
 
std::string to_string () const override
 
numeric::Real value () const
 
void value (numeric::Real setting)
 
- Public Member Functions inherited from numeric::expression_parser::Token
 ~Token () 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

numeric::Real value_
 

Constructor & Destructor Documentation

numeric::expression_parser::LiteralToken::LiteralToken ( )
numeric::expression_parser::LiteralToken::LiteralToken ( numeric::Real  value)

Member Function Documentation

std::string numeric::expression_parser::LiteralToken::to_string ( ) const
overridevirtual
TokenType numeric::expression_parser::LiteralToken::type ( ) const
overridevirtual
numeric::Real numeric::expression_parser::LiteralToken::value ( ) const

References value_.

void numeric::expression_parser::LiteralToken::value ( numeric::Real  setting)

References value_.

Member Data Documentation

numeric::Real numeric::expression_parser::LiteralToken::value_
private

Referenced by to_string(), and value().


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