Puma Reference Manual Puma: Puma::CNamespaceInfo Class Reference



Puma::CNamespaceInfo Class Reference

Semantic information about a user-defined namespace. More...

#include <Puma/CNamespaceInfo.h>

Inherits Puma::CStructure.

Inherited by Puma::CFileInfo.

List of all members.

Public Member Functions

 CNamespaceInfo ()
 Constructor.
 ~CNamespaceInfo ()
 Destructor.
bool isAlias () const
 Check if this is a namespace alias.
void isAlias (bool v)
 Set whether this is a namespace alias.
bool aroundInstantiation () const
 Check if this is a special internal namespace around template instantiations.
void aroundInstantiation (bool v)
 Set whether this is a special internal namespace around template instantiations.

Protected Member Functions

 CNamespaceInfo (ObjectId id)
 Constructor.

Detailed Description

Semantic information about a user-defined namespace.

There are two kinds of namespaces, original namespaces and namespace aliases.


Constructor & Destructor Documentation

Puma::CNamespaceInfo::CNamespaceInfo ( CObjectInfo::ObjectId  id  )  [inline, protected]

Constructor.

Parameters:
id The object type.
Puma::CNamespaceInfo::CNamespaceInfo (  )  [inline]

Constructor.

Puma::CNamespaceInfo::~CNamespaceInfo (  ) 

Destructor.

If the object type is CObjectInfo::NAMESPACE_INFO, then CObjectInfo::CleanUp() is called.


Member Function Documentation

void Puma::CNamespaceInfo::aroundInstantiation ( bool  v  )  [inline]

Set whether this is a special internal namespace around template instantiations.

Parameters:
v true if it is such an internal namespace.
bool Puma::CNamespaceInfo::aroundInstantiation (  )  const [inline]

Check if this is a special internal namespace around template instantiations.

void Puma::CNamespaceInfo::isAlias ( bool  v  )  [inline]

Set whether this is a namespace alias.

Parameters:
v true if it is a namespace alias.
bool Puma::CNamespaceInfo::isAlias (  )  const [inline]

Check if this is a namespace alias.




Puma Reference Manual. Created on 11 Sep 2009.