BinaryExpressionAST Class Reference

#include <ast.h>

Inheritance diagram for BinaryExpressionAST:

Inheritance graph
[legend]
Collaboration diagram for BinaryExpressionAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 227 of file ast.h.

Public Types

enum  

Public Member Functions

 BinaryExpressionAST ()
ASTop () const
AbstractExpressionASTleftExpression () const
AbstractExpressionASTrightExpression () const
void setOp (AST *op)
void setLeftExpression (AbstractExpressionAST *left)
void setRightExpression (AbstractExpressionAST *right)

Private Member Functions

 BinaryExpressionAST (const BinaryExpressionAST &source)
void operator= (const BinaryExpressionAST &source)

Private Attributes

ASTm_op
AbstractExpressionASTm_left
AbstractExpressionASTm_right


Member Enumeration Documentation

anonymous enum

Definition at line 230 of file ast.h.


Constructor & Destructor Documentation

BinaryExpressionAST::BinaryExpressionAST (  ) 

Definition at line 987 of file ast.cpp.

00988     : m_op(0), m_left(0), m_right(0)
00989 {
00990 }

BinaryExpressionAST::BinaryExpressionAST ( const BinaryExpressionAST source  )  [private]


Member Function Documentation

AST* BinaryExpressionAST::op (  )  const [inline]

Definition at line 235 of file ast.h.

References m_op.

Referenced by TreeWalker::parseBinaryExpression(), and setOp().

00236     { return m_op; }

AbstractExpressionAST* BinaryExpressionAST::leftExpression (  )  const [inline]

Definition at line 238 of file ast.h.

References m_left.

Referenced by TreeWalker::parseBinaryExpression().

00239     { return m_left; }

AbstractExpressionAST* BinaryExpressionAST::rightExpression (  )  const [inline]

Definition at line 241 of file ast.h.

References m_right.

Referenced by TreeWalker::parseBinaryExpression().

00242     { return m_right; }

void BinaryExpressionAST::setOp ( AST op  ) 

Definition at line 992 of file ast.cpp.

References m_op, op(), and AST::setParent().

Referenced by Parser::parseAdditiveExpression(), Parser::parseAndExpression(), Parser::parseAssignmentExpression(), Parser::parseCommaExpression(), Parser::parseEqualityExpression(), Parser::parseExclusiveOrExpression(), Parser::parseInclusiveOrExpression(), Parser::parseLogicalAndExpression(), Parser::parseLogicalOrExpression(), Parser::parseMultiplicativeExpression(), Parser::parsePmExpression(), Parser::parseRelationalExpression(), and Parser::parseShiftExpression().

00993 {
00994     m_op = op;
00995     if (m_op)
00996         m_op->setParent(this);
00997 }

Here is the call graph for this function:

void BinaryExpressionAST::setLeftExpression ( AbstractExpressionAST left  ) 

Definition at line 999 of file ast.cpp.

References left(), m_left, and AST::setParent().

Referenced by Parser::parseAdditiveExpression(), Parser::parseAndExpression(), Parser::parseAssignmentExpression(), Parser::parseCommaExpression(), Parser::parseEqualityExpression(), Parser::parseExclusiveOrExpression(), Parser::parseInclusiveOrExpression(), Parser::parseLogicalAndExpression(), Parser::parseLogicalOrExpression(), Parser::parseMultiplicativeExpression(), Parser::parsePmExpression(), Parser::parseRelationalExpression(), and Parser::parseShiftExpression().

01000 {
01001     m_left = left;
01002     if (m_left)
01003         m_left->setParent(this);
01004 }

Here is the call graph for this function:

void BinaryExpressionAST::setRightExpression ( AbstractExpressionAST right  ) 

Definition at line 1006 of file ast.cpp.

References m_right, right(), and AST::setParent().

Referenced by Parser::parseAdditiveExpression(), Parser::parseAndExpression(), Parser::parseAssignmentExpression(), Parser::parseCommaExpression(), Parser::parseEqualityExpression(), Parser::parseExclusiveOrExpression(), Parser::parseInclusiveOrExpression(), Parser::parseLogicalAndExpression(), Parser::parseLogicalOrExpression(), Parser::parseMultiplicativeExpression(), Parser::parsePmExpression(), Parser::parseRelationalExpression(), and Parser::parseShiftExpression().

01007 {
01008     m_right = right;
01009     if (m_right)
01010         m_right->setParent(this);
01011 }

Here is the call graph for this function:

void BinaryExpressionAST::operator= ( const BinaryExpressionAST source  )  [private]


Member Data Documentation

AST* BinaryExpressionAST::m_op [private]

Definition at line 249 of file ast.h.

Referenced by op(), and setOp().

AbstractExpressionAST* BinaryExpressionAST::m_left [private]

Definition at line 250 of file ast.h.

Referenced by leftExpression(), and setLeftExpression().

AbstractExpressionAST* BinaryExpressionAST::m_right [private]

Definition at line 251 of file ast.h.

Referenced by rightExpression(), and setRightExpression().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 14:45:44 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1