WhileStatementAST Class Reference

#include <ast.h>

Inheritance diagram for WhileStatementAST:

Inheritance graph
[legend]
Collaboration diagram for WhileStatementAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1317 of file ast.h.

Public Types

enum  

Public Member Functions

 WhileStatementAST ()
ConditionASTcondition () const
void setCondition (ConditionAST *condition)
StatementASTstatement () const
void setStatement (StatementAST *statement)

Private Member Functions

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

Private Attributes

ConditionASTm_condition
StatementASTm_statement


Member Enumeration Documentation

anonymous enum

Definition at line 1320 of file ast.h.


Constructor & Destructor Documentation

WhileStatementAST::WhileStatementAST (  ) 

Definition at line 670 of file ast.cpp.

00671     : m_condition(0),
00672       m_statement(0)
00673 {
00674 }

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


Member Function Documentation

ConditionAST* WhileStatementAST::condition (  )  const [inline]

Definition at line 1325 of file ast.h.

References m_condition.

Referenced by TreeWalker::parseWhileStatement(), and setCondition().

01325 { return m_condition; }

void WhileStatementAST::setCondition ( ConditionAST condition  ) 

Definition at line 676 of file ast.cpp.

References condition(), m_condition, and AST::setParent().

Referenced by Parser::parseWhileStatement().

00677 {
00678     m_condition = condition;
00679     if (m_condition) m_condition->setParent(this);
00680 }

Here is the call graph for this function:

StatementAST* WhileStatementAST::statement (  )  const [inline]

Definition at line 1328 of file ast.h.

References m_statement.

Referenced by TreeWalker::parseWhileStatement(), and setStatement().

01328 { return m_statement; }

void WhileStatementAST::setStatement ( StatementAST statement  ) 

Definition at line 682 of file ast.cpp.

References m_statement, AST::setParent(), and statement().

Referenced by Parser::parseWhileStatement().

00683 {
00684     m_statement = statement;
00685     if (m_statement) m_statement->setParent(this);
00686 }

Here is the call graph for this function:

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


Member Data Documentation

ConditionAST* WhileStatementAST::m_condition [private]

Definition at line 1332 of file ast.h.

Referenced by condition(), and setCondition().

StatementAST* WhileStatementAST::m_statement [private]

Definition at line 1333 of file ast.h.

Referenced by setStatement(), and statement().


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