NameAST Class Reference

#include <ast.h>

Inheritance diagram for NameAST:

Inheritance graph
[legend]
Collaboration diagram for NameAST:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 548 of file ast.h.

Public Types

enum  

Public Member Functions

 NameAST ()
bool isGlobal () const
void setGlobal (bool b)
void addClassOrNamespaceName (ClassOrNamespaceNameAST *classOrNamespaceName)
List< ClassOrNamespaceNameAST * > * classOrNamespaceNameList () const
ClassOrNamespaceNameASTunqualifiedName () const
void setUnqualifiedName (ClassOrNamespaceNameAST *unqualifiedName)

Private Member Functions

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

Private Attributes

bool m_global
ClassOrNamespaceNameASTm_unqualifiedName
List< ClassOrNamespaceNameAST * > * m_classOrNamespaceNameList


Member Enumeration Documentation

anonymous enum

Definition at line 551 of file ast.h.

00551 { Type = NodeType_Name };


Constructor & Destructor Documentation

NameAST::NameAST (  ) 

Definition at line 64 of file ast.cpp.

00065     : m_global(false), m_unqualifiedName(0), m_classOrNamespaceNameList(0)
00066 {
00067 }

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


Member Function Documentation

bool NameAST::isGlobal (  )  const [inline]

Definition at line 556 of file ast.h.

References m_global.

00556 { return m_global; }

void NameAST::setGlobal ( bool  b  ) 

Definition at line 69 of file ast.cpp.

References m_global.

Referenced by Parser::parseName().

00070 {
00071     m_global = b;
00072 }

void NameAST::addClassOrNamespaceName ( ClassOrNamespaceNameAST classOrNamespaceName  ) 

Definition at line 80 of file ast.cpp.

References AST::_pool, m_classOrNamespaceNameList, and AST::setParent().

Referenced by Parser::parseName().

00081 {
00082     if(!classOrNamespaceName)
00083         return;
00084 
00085     classOrNamespaceName->setParent(this);
00086     m_classOrNamespaceNameList = snoc(m_classOrNamespaceNameList, classOrNamespaceName, _pool);
00087 }

Here is the call graph for this function:

List<ClassOrNamespaceNameAST *>* NameAST::classOrNamespaceNameList (  )  const [inline]

Definition at line 560 of file ast.h.

References m_classOrNamespaceNameList.

Referenced by TreeWalker::parseName().

00560 { return m_classOrNamespaceNameList; }

ClassOrNamespaceNameAST* NameAST::unqualifiedName (  )  const [inline]

Definition at line 562 of file ast.h.

References m_unqualifiedName.

Referenced by Semantic::parseClassSpecifier(), Semantic::parseElaboratedTypeSpecifier(), Semantic::parseEnumSpecifier(), Semantic::parseFunctionArguments(), Semantic::parseFunctionDeclaration(), TreeWalker::parseName(), Semantic::parseTypedef(), Semantic::parseUsing(), Semantic::parseUsingDirective(), and setUnqualifiedName().

00562 { return m_unqualifiedName; }

void NameAST::setUnqualifiedName ( ClassOrNamespaceNameAST unqualifiedName  ) 

Definition at line 74 of file ast.cpp.

References m_unqualifiedName, AST::setParent(), and unqualifiedName().

Referenced by Parser::parseName().

Here is the call graph for this function:

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


Member Data Documentation

bool NameAST::m_global [private]

Definition at line 566 of file ast.h.

Referenced by isGlobal(), and setGlobal().

ClassOrNamespaceNameAST* NameAST::m_unqualifiedName [private]

Definition at line 567 of file ast.h.

Referenced by setUnqualifiedName(), and unqualifiedName().

List<ClassOrNamespaceNameAST *>* NameAST::m_classOrNamespaceNameList [private]

Definition at line 568 of file ast.h.

Referenced by addClassOrNamespaceName(), and classOrNamespaceNameList().


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