Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

CPPNamespace Class Reference

#include <cppNamespace.h>

Inheritance diagram for CPPNamespace:

CPPDeclaration List of all members.

Public Member Functions

 CPPNamespace (CPPIdentifier *ident, CPPScope *scope, const CPPFile &file)
string get_simple_name () const
string get_local_name (CPPScope *scope=NULL) const
string get_fully_scoped_name () const
CPPScope * get_scope () const
virtual void output (ostream &out, int indent_level, CPPScope *scope, bool complete) const
virtual SubType get_subtype () const
virtual CPPNamespace * as_namespace ()

Private Attributes

CPPIdentifier * _ident
CPPScope * _scope

Constructor & Destructor Documentation

CPPNamespace::CPPNamespace (  CPPIdentifier *  ident,
CPPScope *  scope,
const CPPFile &  file
) 
 

Definition at line 31 of file cppNamespace.cxx.


Member Function Documentation

CPPNamespace * CPPNamespace::as_namespace (   )  [virtual]
 

Reimplemented from CPPDeclaration.

Definition at line 125 of file cppNamespace.cxx.

string CPPNamespace::get_fully_scoped_name (   )  const
 

Definition at line 69 of file cppNamespace.cxx.

References _ident, CPPIdentifier::get_fully_scoped_name(), and NULL.

string CPPNamespace::get_local_name (  CPPScope *  scope = NULL  )  const
 

Definition at line 56 of file cppNamespace.cxx.

References _ident, CPPIdentifier::get_local_name(), and NULL.

CPPScope * CPPNamespace::get_scope (   )  const
 

Definition at line 82 of file cppNamespace.cxx.

References _scope.

string CPPNamespace::get_simple_name (   )  const
 

Definition at line 43 of file cppNamespace.cxx.

References _ident, CPPIdentifier::get_simple_name(), and NULL.

Referenced by CPPScope::define_namespace().

CPPDeclaration::SubType CPPNamespace::get_subtype (   )  const [virtual]
 

Implements CPPDeclaration.

Definition at line 115 of file cppNamespace.cxx.

References CPPDeclaration::ST_namespace.

void CPPNamespace::output (  ostream &  out,
int  indent_level,
CPPScope *  scope,
bool  complete
)  const [virtual]
 

Implements CPPDeclaration.

Definition at line 92 of file cppNamespace.cxx.

References _ident, _scope, CPPIdentifier::get_local_name(), indent(), NULL, and CPPScope::write().


Member Data Documentation

CPPIdentifier* CPPNamespace::_ident [private]
 

Definition at line 50 of file cppNamespace.h.

Referenced by get_fully_scoped_name(), get_local_name(), get_simple_name(), and output().

CPPScope* CPPNamespace::_scope [private]
 

Definition at line 51 of file cppNamespace.h.

Referenced by get_scope(), and output().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 01:34:50 2003 for DTool by doxygen1.3