EnumeratorAST Class Reference

#include <ast.h>

Inheritance diagram for EnumeratorAST:

Inheritance graph
[legend]
Collaboration diagram for EnumeratorAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 742 of file ast.h.

Public Types

enum  

Public Member Functions

 EnumeratorAST ()
ASTid () const
void setId (AST *id)
AbstractExpressionASTexpression () const
void setExpression (AbstractExpressionAST *expr)

Private Member Functions

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

Private Attributes

ASTm_id
AbstractExpressionASTm_expression


Member Enumeration Documentation

anonymous enum

Definition at line 745 of file ast.h.


Constructor & Destructor Documentation

EnumeratorAST::EnumeratorAST (  ) 

Definition at line 382 of file ast.cpp.

00383     : m_id(0),
00384       m_expression(0)
00385 {
00386 }

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


Member Function Documentation

AST* EnumeratorAST::id (  )  const [inline]

Definition at line 750 of file ast.h.

References m_id.

Referenced by TreeWalker::parseEnumerator(), Semantic::parseEnumSpecifier(), and setId().

00750 { return m_id; }

void EnumeratorAST::setId ( AST id  ) 

Definition at line 388 of file ast.cpp.

References id(), m_id, and AST::setParent().

00389 {
00390     m_id = id;
00391     if (m_id) m_id->setParent(this);
00392 }

Here is the call graph for this function:

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

Definition at line 753 of file ast.h.

References m_expression.

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

00753 { return m_expression; }

void EnumeratorAST::setExpression ( AbstractExpressionAST expr  ) 

Definition at line 394 of file ast.cpp.

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

00395 {
00396     m_expression = expression;
00397     if (m_expression) m_expression->setParent(this);
00398 }

Here is the call graph for this function:

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


Member Data Documentation

AST* EnumeratorAST::m_id [private]

Definition at line 757 of file ast.h.

Referenced by id(), and setId().

AbstractExpressionAST* EnumeratorAST::m_expression [private]

Definition at line 758 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 14:58:20 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1