Code::Blocks  SVN r11506
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
Expression Class Reference

#include <expression.h>

Collaboration diagram for Expression:

Public Member Functions

 Expression ()
 
void AddToInfixExpression (wxString token)
 
void ConvertInfixToPostfix ()
 
bool CalcPostfix ()
 
long GetResult () const
 
bool GetStatus () const
 
void Clear ()
 

Private Types

typedef std::vector< ExpressionNodePostfixVector
 
typedef std::vector< wxStringInfixVector
 

Private Member Functions

long Calculate (ExpressionNode::ExpressionNodeType type, long first, long second)
 
long CalculateUnary (ExpressionNode::ExpressionNodeType type, long value)
 

Private Attributes

PostfixVector m_PostfixExpression
 
InfixVector m_InfixExpression
 
bool m_Status
 
long m_Result
 

Detailed Description

Definition at line 74 of file expression.h.

Member Typedef Documentation

◆ InfixVector

typedef std::vector<wxString> Expression::InfixVector
private

Definition at line 97 of file expression.h.

◆ PostfixVector

typedef std::vector<ExpressionNode> Expression::PostfixVector
private

Definition at line 96 of file expression.h.

Constructor & Destructor Documentation

◆ Expression()

Expression::Expression ( )
inline

Definition at line 78 of file expression.h.

Member Function Documentation

◆ AddToInfixExpression()

void Expression::AddToInfixExpression ( wxString  token)

◆ CalcPostfix()

bool Expression::CalcPostfix ( )

◆ Calculate()

long Expression::Calculate ( ExpressionNode::ExpressionNodeType  type,
long  first,
long  second 
)
private

◆ CalculateUnary()

long Expression::CalculateUnary ( ExpressionNode::ExpressionNodeType  type,
long  value 
)
private

◆ Clear()

void Expression::Clear ( )

Definition at line 226 of file expression.cpp.

Referenced by ParserThread::CalcEnumExpression().

◆ ConvertInfixToPostfix()

void Expression::ConvertInfixToPostfix ( )

◆ GetResult()

long Expression::GetResult ( ) const
inline

◆ GetStatus()

bool Expression::GetStatus ( ) const
inline

Member Data Documentation

◆ m_InfixExpression

InfixVector Expression::m_InfixExpression
private

Definition at line 100 of file expression.h.

◆ m_PostfixExpression

PostfixVector Expression::m_PostfixExpression
private

Definition at line 99 of file expression.h.

◆ m_Result

long Expression::m_Result
private

Definition at line 102 of file expression.h.

◆ m_Status

bool Expression::m_Status
private

Definition at line 101 of file expression.h.


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