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

binary operator on rpn stack More...

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

Public Member Functions

 BinaryToken (std::function< double(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,
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)
inlineexplicit

Definition at line 106 of file ParseExp.cpp.

Member Function Documentation

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

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: