![]() |
Rosetta
2021.07
|
#include <Arithmetic.hh>
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) |
![]() | |
~Token () override | |
Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
![]() | |
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 | |
VirtualBase & | operator= (VirtualBase const &)=default |
VirtualBase & | operator= (VirtualBase &&)=default |
Private Attributes | |
std::string | name_ |
numeric::Size | nargs_ |
numeric::expression_parser::FunctionToken::FunctionToken | ( | ) |
numeric::expression_parser::FunctionToken::FunctionToken | ( | std::string | name, |
numeric::Size | nargs | ||
) |
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_.
|
overridevirtual |
Implements numeric::expression_parser::Token.
References name_, nargs_, and utility::to_string().
|
overridevirtual |
Implements numeric::expression_parser::Token.
References numeric::expression_parser::FUNCTION.
|
private |
Referenced by name(), and to_string().
|
private |
Referenced by nargs(), and to_string().