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::Operators::BinaryOperator Class Reference

binary operator on stack on shunting yards operator stack More...

Inheritance diagram for Parser::ShuntingYard::Operators::BinaryOperator:
Inheritance graph

Public Member Functions

 BinaryOperator (std::function< double(double, double)> func, int prec, bool rightAssoc=false)
 
RPNTokens::TokenBaseGetTokenBase ()
 
- Public Member Functions inherited from Parser::ShuntingYard::Operators::OperatorBase
 OperatorBase (int prec, bool rightAssoc=false)
 
virtual ~OperatorBase ()
 
const int GetPrecedence () const
 
const bool IsRightAssociative () const
 
bool ComparePrecedence (const OperatorBase *other)
 

Private Attributes

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

Detailed Description

binary operator on stack on shunting yards operator stack

Definition at line 198 of file ParseExp.cpp.

Constructor & Destructor Documentation

Parser::ShuntingYard::Operators::BinaryOperator::BinaryOperator ( std::function< double(double, double)>  func,
int  prec,
bool  rightAssoc = false 
)
inline

Definition at line 201 of file ParseExp.cpp.

Member Function Documentation

RPNTokens::TokenBase* Parser::ShuntingYard::Operators::BinaryOperator::GetTokenBase ( )
inlinevirtual

Reimplemented from Parser::ShuntingYard::Operators::OperatorBase.

Definition at line 202 of file ParseExp.cpp.

Member Data Documentation

std::function<double(double, double)> Parser::ShuntingYard::Operators::BinaryOperator::m_function
private

Definition at line 202 of file ParseExp.cpp.


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