Parser::ShuntingYard::RPNTokens::BinaryToken Class Reference

binary operator on rpn stack More...

Inheritance diagram for Parser::ShuntingYard::RPNTokens::BinaryToken:

Inheritance graph
[legend]
List of all members.

Public Member Functions

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

Private Attributes

std::function< double(double,
double)> 
m_function

Detailed Description

binary operator on rpn stack

Definition at line 103 of file ParseExp.cpp.


Constructor & Destructor Documentation

Parser::ShuntingYard::RPNTokens::BinaryToken::BinaryToken ( std::function< double(double, double)>  func  )  [inline, explicit]

Definition at line 106 of file ParseExp.cpp.


Member Function Documentation

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

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

Definition at line 107 of file ParseExp.cpp.

References m_function.


Member Data Documentation

std::function<double(double, double)> Parser::ShuntingYard::RPNTokens::BinaryToken::m_function [private]

Definition at line 126 of file ParseExp.cpp.

Referenced by evaluate().


The documentation for this class was generated from the following file:
Generated on 21 Jan 2018 for Hugintrunk by  doxygen 1.4.7