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

function or unary operator on shunting yards operator stack More...

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

Public Member Functions

 FunctionOperator (std::function< double(double)> func, int prec=-2, 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)> m_function
 

Detailed Description

function or unary operator on shunting yards operator stack

Definition at line 188 of file ParseExp.cpp.

Constructor & Destructor Documentation

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

Definition at line 191 of file ParseExp.cpp.

Member Function Documentation

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

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

Definition at line 192 of file ParseExp.cpp.

Member Data Documentation

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

Definition at line 192 of file ParseExp.cpp.


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