Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
Parser::ShuntingYard::RPNTokens::FunctionToken Class Reference

unary operator or function on rpn queue More...

Inheritance diagram for Parser::ShuntingYard::RPNTokens::FunctionToken:
Inheritance graph

Public Member Functions

 FunctionToken (std::function< double(double)> func)
 
void evaluate (std::stack< double > &rpnStack)
 
- Public Member Functions inherited from Parser::ShuntingYard::RPNTokens::TokenBase
virtual ~TokenBase ()
 

Private Attributes

std::function< double(double)> m_function
 

Detailed Description

unary operator or function on rpn queue

Definition at line 76 of file ParseExp.cpp.

Constructor & Destructor Documentation

Parser::ShuntingYard::RPNTokens::FunctionToken::FunctionToken ( std::function< double(double)>  func)
inlineexplicit

Definition at line 79 of file ParseExp.cpp.

Member Function Documentation

void Parser::ShuntingYard::RPNTokens::FunctionToken::evaluate ( std::stack< double > &  rpnStack)
inlinevirtual

Implements Parser::ShuntingYard::RPNTokens::TokenBase.

Definition at line 80 of file ParseExp.cpp.

References m_function.

Member Data Documentation

std::function<double(double)> Parser::ShuntingYard::RPNTokens::FunctionToken::m_function
private

Definition at line 97 of file ParseExp.cpp.

Referenced by evaluate().


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