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::FunctionToken Class Reference

#include <Arithmetic.hh>

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

Public Member Functions

 FunctionToken ()
 
 FunctionToken (std::string name, numeric::Size nargs)
 
TokenType type () const override
 
std::string to_string () const override
 
std::string name () const
 
void name (std::string const &name)
 
numeric::Size nargs () const
 
void nargs (Size 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

std::string name_
 
numeric::Size nargs_
 

Constructor & Destructor Documentation

numeric::expression_parser::FunctionToken::FunctionToken ( )
numeric::expression_parser::FunctionToken::FunctionToken ( std::string  name,
numeric::Size  nargs 
)

Member Function Documentation

std::string numeric::expression_parser::FunctionToken::name ( ) const

References name_.

void numeric::expression_parser::FunctionToken::name ( std::string const &  name)

References name_.

numeric::Size numeric::expression_parser::FunctionToken::nargs ( ) const

References nargs_.

void numeric::expression_parser::FunctionToken::nargs ( Size  setting)

References nargs_.

std::string numeric::expression_parser::FunctionToken::to_string ( ) const
overridevirtual
TokenType numeric::expression_parser::FunctionToken::type ( ) const
overridevirtual

Member Data Documentation

std::string numeric::expression_parser::FunctionToken::name_
private

Referenced by name(), and to_string().

numeric::Size numeric::expression_parser::FunctionToken::nargs_
private

Referenced by nargs(), and to_string().


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