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

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

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

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 ( )
inlinevirtual

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 ( )
inlinevirtual
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: