Parser::ShuntingYard::Operators::OperatorBase Class Reference

base class for operator on shunting yards operator stack More...

Inheritance diagram for Parser::ShuntingYard::Operators::OperatorBase:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 OperatorBase (int prec, bool rightAssoc=false)
virtual ~OperatorBase ()
const int GetPrecedence () const
const bool IsRightAssociative () const
bool ComparePrecedence (const OperatorBase *other)
virtual RPNTokens::TokenBaseGetTokenBase ()

Private Attributes

int m_precedence
bool m_rightAssoc

Detailed Description

base class for operator on shunting yards operator stack

Definition at line 163 of file ParseExp.cpp.


Constructor & Destructor Documentation

Parser::ShuntingYard::Operators::OperatorBase::OperatorBase ( int  prec,
bool  rightAssoc = false 
) [inline]

Definition at line 166 of file ParseExp.cpp.

virtual Parser::ShuntingYard::Operators::OperatorBase::~OperatorBase (  )  [inline, virtual]

Definition at line 167 of file ParseExp.cpp.


Member Function Documentation

bool Parser::ShuntingYard::Operators::OperatorBase::ComparePrecedence ( const OperatorBase other  )  [inline]

Definition at line 170 of file ParseExp.cpp.

References GetPrecedence(), and IsRightAssociative().

Referenced by Parser::ShuntingYard::ConvertToRPN().

const int Parser::ShuntingYard::Operators::OperatorBase::GetPrecedence (  )  const [inline]

Definition at line 168 of file ParseExp.cpp.

References m_precedence.

Referenced by ComparePrecedence().

virtual RPNTokens::TokenBase* Parser::ShuntingYard::Operators::OperatorBase::GetTokenBase (  )  [inline, virtual]

Reimplemented in Parser::ShuntingYard::Operators::FunctionOperator, Parser::ShuntingYard::Operators::BinaryOperator, and Parser::ShuntingYard::Operators::IfOperator.

Definition at line 181 of file ParseExp.cpp.

const bool Parser::ShuntingYard::Operators::OperatorBase::IsRightAssociative (  )  const [inline]

Definition at line 169 of file ParseExp.cpp.

References m_rightAssoc.

Referenced by ComparePrecedence().


Member Data Documentation

int Parser::ShuntingYard::Operators::OperatorBase::m_precedence [private]

Definition at line 181 of file ParseExp.cpp.

Referenced by GetPrecedence().

bool Parser::ShuntingYard::Operators::OperatorBase::m_rightAssoc [private]

Definition at line 184 of file ParseExp.cpp.

Referenced by IsRightAssociative().


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