NamespaceAST Class Reference

#include <ast.h>

Inheritance diagram for NamespaceAST:

Inheritance graph
[legend]
Collaboration diagram for NamespaceAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 850 of file ast.h.

Public Types

enum  

Public Member Functions

 NamespaceAST ()
ASTnamespaceName () const
void setNamespaceName (AST *namespaceName)
LinkageBodyASTlinkageBody () const
void setLinkageBody (LinkageBodyAST *linkageBody)

Private Member Functions

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

Private Attributes

ASTm_namespaceName
LinkageBodyASTm_linkageBody


Member Enumeration Documentation

anonymous enum

Definition at line 853 of file ast.h.

00853 { Type = NodeType_Namespace };


Constructor & Destructor Documentation

NamespaceAST::NamespaceAST (  ) 

Definition at line 152 of file ast.cpp.

00153     : m_namespaceName(0),
00154       m_linkageBody(0)
00155 {
00156 }

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


Member Function Documentation

AST* NamespaceAST::namespaceName (  )  const [inline]

Definition at line 858 of file ast.h.

References m_namespaceName.

Referenced by TreeWalker::parseNamespace(), Semantic::parseNamespace(), and setNamespaceName().

00858 { return m_namespaceName; }

void NamespaceAST::setNamespaceName ( AST namespaceName  ) 

Definition at line 158 of file ast.cpp.

References m_namespaceName, namespaceName(), and AST::setParent().

Referenced by Parser::parseNamespace().

00159 {
00160     m_namespaceName = namespaceName;
00161     if (m_namespaceName) m_namespaceName->setParent(this);
00162 }

Here is the call graph for this function:

LinkageBodyAST* NamespaceAST::linkageBody (  )  const [inline]

Definition at line 861 of file ast.h.

References m_linkageBody.

Referenced by TreeWalker::parseNamespace(), and setLinkageBody().

00861 { return m_linkageBody; }

void NamespaceAST::setLinkageBody ( LinkageBodyAST linkageBody  ) 

Definition at line 164 of file ast.cpp.

References linkageBody(), m_linkageBody, and AST::setParent().

Referenced by Parser::parseNamespace().

00165 {
00166     m_linkageBody = linkageBody;
00167     if (m_linkageBody) m_linkageBody->setParent(this);
00168 }

Here is the call graph for this function:

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


Member Data Documentation

AST* NamespaceAST::m_namespaceName [private]

Definition at line 865 of file ast.h.

Referenced by namespaceName(), and setNamespaceName().

LinkageBodyAST* NamespaceAST::m_linkageBody [private]

Definition at line 866 of file ast.h.

Referenced by linkageBody(), and setLinkageBody().


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