Parser::ShuntingYard::RPNTokens::FunctionToken Class Reference

unary operator or function on rpn queue More...

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

 FunctionToken (std::function< double(double)> func)
void evaluate (std::stack< double > &rpnStack)

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  )  [inline, explicit]

Definition at line 79 of file ParseExp.cpp.


Member Function Documentation

void Parser::ShuntingYard::RPNTokens::FunctionToken::evaluate ( std::stack< double > &  rpnStack  )  [inline, virtual]

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:
Generated on 20 Jan 2018 for Hugintrunk by  doxygen 1.4.7