SwitchStatementAST Class Reference

#include <ast.h>

Inheritance diagram for SwitchStatementAST:

Inheritance graph
[legend]
Collaboration diagram for SwitchStatementAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 1394 of file ast.h.

Public Types

enum  

Public Member Functions

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

Private Member Functions

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

Private Attributes

ConditionASTm_condition
StatementASTm_statement


Member Enumeration Documentation

anonymous enum

Definition at line 1397 of file ast.h.


Constructor & Destructor Documentation

SwitchStatementAST::SwitchStatementAST (  ) 

Definition at line 741 of file ast.cpp.

00742     : m_condition(0),
00743       m_statement(0)
00744 {
00745 }

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


Member Function Documentation

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

Definition at line 1402 of file ast.h.

References m_condition.

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

01402 { return m_condition; }

void SwitchStatementAST::setCondition ( ConditionAST condition  ) 

Definition at line 747 of file ast.cpp.

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

Referenced by Parser::parseSwitchStatement().

00748 {
00749     m_condition = condition;
00750     if (m_condition) m_condition->setParent(this);
00751 }

Here is the call graph for this function:

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

Definition at line 1405 of file ast.h.

References m_statement.

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

01405 { return m_statement; }

void SwitchStatementAST::setStatement ( StatementAST statement  ) 

Definition at line 753 of file ast.cpp.

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

Referenced by Parser::parseSwitchStatement().

00754 {
00755     m_statement = statement;
00756     if (m_statement) m_statement->setParent(this);
00757 }

Here is the call graph for this function:

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


Member Data Documentation

ConditionAST* SwitchStatementAST::m_condition [private]

Definition at line 1409 of file ast.h.

Referenced by condition(), and setCondition().

StatementAST* SwitchStatementAST::m_statement [private]

Definition at line 1410 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:04:34 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1