ForStatementAST Class Reference

#include <ast.h>

Inheritance diagram for ForStatementAST:

Inheritance graph
[legend]
Collaboration diagram for ForStatementAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1363 of file ast.h.

Public Types

enum  

Public Member Functions

 ForStatementAST ()
StatementASTinitStatement () const
void setInitStatement (StatementAST *statement)
ConditionASTcondition () const
void setCondition (ConditionAST *condition)
AbstractExpressionASTexpression () const
void setExpression (AbstractExpressionAST *expression)
StatementASTstatement () const
void setStatement (StatementAST *statement)

Private Member Functions

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

Private Attributes

ConditionASTm_condition
StatementASTm_initStatement
StatementASTm_statement
AbstractExpressionASTm_expression


Member Enumeration Documentation

anonymous enum

Definition at line 1366 of file ast.h.


Constructor & Destructor Documentation

ForStatementAST::ForStatementAST (  ) 

Definition at line 708 of file ast.cpp.

00709     : m_condition(0),
00710       m_initStatement(0),
00711       m_statement(0),
00712       m_expression(0)
00713 {
00714 }

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


Member Function Documentation

StatementAST* ForStatementAST::initStatement (  )  const [inline]

Definition at line 1371 of file ast.h.

References m_initStatement.

Referenced by TreeWalker::parseForStatement(), and setInitStatement().

01371 { return m_initStatement; }

void ForStatementAST::setInitStatement ( StatementAST statement  ) 

Definition at line 734 of file ast.cpp.

References initStatement(), m_initStatement, and AST::setParent().

Referenced by Parser::parseForStatement().

00735 {
00736     m_initStatement = initStatement;
00737     if (m_initStatement) m_initStatement->setParent(this);
00738 }

Here is the call graph for this function:

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

Definition at line 1374 of file ast.h.

References m_condition.

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

01374 { return m_condition; }

void ForStatementAST::setCondition ( ConditionAST condition  ) 

Definition at line 716 of file ast.cpp.

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

Referenced by Parser::parseForStatement().

00717 {
00718     m_condition = condition;
00719     if (m_condition) m_condition->setParent(this);
00720 }

Here is the call graph for this function:

AbstractExpressionAST* ForStatementAST::expression (  )  const [inline]

Definition at line 1377 of file ast.h.

References m_expression.

Referenced by TreeWalker::parseForStatement(), and setExpression().

01377 { return m_expression; }

void ForStatementAST::setExpression ( AbstractExpressionAST expression  ) 

Definition at line 722 of file ast.cpp.

References expression(), m_expression, and AST::setParent().

00723 {
00724     m_expression = expression;
00725     if (m_expression) m_expression->setParent(this);
00726 }

Here is the call graph for this function:

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

Definition at line 1380 of file ast.h.

References m_statement.

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

01380 { return m_statement; }

void ForStatementAST::setStatement ( StatementAST statement  ) 

Definition at line 728 of file ast.cpp.

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

Referenced by Parser::parseForStatement().

00729 {
00730     m_statement = statement;
00731     if (m_statement) m_statement->setParent(this);
00732 }

Here is the call graph for this function:

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


Member Data Documentation

ConditionAST* ForStatementAST::m_condition [private]

Definition at line 1384 of file ast.h.

Referenced by condition(), and setCondition().

StatementAST* ForStatementAST::m_initStatement [private]

Definition at line 1385 of file ast.h.

Referenced by initStatement(), and setInitStatement().

StatementAST* ForStatementAST::m_statement [private]

Definition at line 1386 of file ast.h.

Referenced by setStatement(), and statement().

AbstractExpressionAST* ForStatementAST::m_expression [private]

Definition at line 1387 of file ast.h.

Referenced by expression(), and setExpression().


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