Rosetta
Public Member Functions | Private Attributes | List of all members
numeric::expression_parser::SimpleToken Class Reference

#include <Arithmetic.hh>

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

Public Member Functions

 SimpleToken ()
 
 SimpleToken (TokenType type)
 
TokenType type () const override
 
std::string to_string () const override
 
void set_token_type (TokenType type)
 
- 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

TokenType type_
 

Constructor & Destructor Documentation

◆ SimpleToken() [1/2]

numeric::expression_parser::SimpleToken::SimpleToken ( )

◆ SimpleToken() [2/2]

numeric::expression_parser::SimpleToken::SimpleToken ( TokenType  type)

Member Function Documentation

◆ set_token_type()

void numeric::expression_parser::SimpleToken::set_token_type ( TokenType  type)

References type_.

◆ to_string()

std::string numeric::expression_parser::SimpleToken::to_string ( ) const
overridevirtual

◆ type()

TokenType numeric::expression_parser::SimpleToken::type ( ) const
overridevirtual

Member Data Documentation

◆ type_

TokenType numeric::expression_parser::SimpleToken::type_
private

Referenced by set_token_type(), to_string(), and type().


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