IfStatementAST Class Reference

#include <ast.h>

Inheritance diagram for IfStatementAST:

Inheritance graph
[legend]
Collaboration diagram for IfStatementAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1290 of file ast.h.

Public Types

enum  

Public Member Functions

 IfStatementAST ()
ConditionASTcondition () const
void setCondition (ConditionAST *condition)
StatementASTstatement () const
void setStatement (StatementAST *statement)
StatementASTelseStatement () const
void setElseStatement (StatementAST *statement)

Private Member Functions

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

Private Attributes

ConditionASTm_condition
StatementASTm_statement
StatementASTm_elseStatement


Member Enumeration Documentation

anonymous enum

Definition at line 1293 of file ast.h.


Constructor & Destructor Documentation

IfStatementAST::IfStatementAST (  ) 

Definition at line 644 of file ast.cpp.

00645     : m_condition(0),
00646       m_statement(0),
00647       m_elseStatement(0)
00648 {
00649 }

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


Member Function Documentation

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

Definition at line 1298 of file ast.h.

References m_condition.

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

01298 { return m_condition; }

void IfStatementAST::setCondition ( ConditionAST condition  ) 

Definition at line 651 of file ast.cpp.

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

Referenced by Parser::parseIfStatement().

00652 {
00653     m_condition = condition;
00654     if (m_condition) m_condition->setParent(this);
00655 }

Here is the call graph for this function:

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

Definition at line 1301 of file ast.h.

References m_statement.

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

01301 { return m_statement; }

void IfStatementAST::setStatement ( StatementAST statement  ) 

Definition at line 657 of file ast.cpp.

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

Referenced by Parser::parseIfStatement().

00658 {
00659     m_statement = statement;
00660     if (m_statement) m_statement->setParent(this);
00661 }

Here is the call graph for this function:

StatementAST* IfStatementAST::elseStatement (  )  const [inline]

Definition at line 1304 of file ast.h.

References m_elseStatement.

Referenced by TreeWalker::parseIfStatement(), and setElseStatement().

01304 { return m_elseStatement; }

void IfStatementAST::setElseStatement ( StatementAST statement  ) 

Definition at line 663 of file ast.cpp.

References elseStatement(), m_elseStatement, and AST::setParent().

Referenced by Parser::parseIfStatement().

00664 {
00665     m_elseStatement = elseStatement;
00666     if (m_elseStatement) m_elseStatement->setParent(this);
00667 }

Here is the call graph for this function:

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


Member Data Documentation

ConditionAST* IfStatementAST::m_condition [private]

Definition at line 1308 of file ast.h.

Referenced by condition(), and setCondition().

StatementAST* IfStatementAST::m_statement [private]

Definition at line 1309 of file ast.h.

Referenced by setStatement(), and statement().

StatementAST* IfStatementAST::m_elseStatement [private]

Definition at line 1310 of file ast.h.

Referenced by elseStatement(), and setElseStatement().


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