Puma Reference Manual | Puma: Puma::CNamespaceInfo Class Reference |
Semantic information about a user-defined namespace. More...
#include <Puma/CNamespaceInfo.h>
Inherits Puma::CStructure.
Inherited by Puma::CFileInfo.
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. |
Semantic information about a user-defined namespace.
There are two kinds of namespaces, original namespaces and namespace aliases.
Puma::CNamespaceInfo::CNamespaceInfo | ( | CObjectInfo::ObjectId | id | ) | [inline, protected] |
Constructor.
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.
void Puma::CNamespaceInfo::aroundInstantiation | ( | bool | v | ) | [inline] |
Set whether this is a special internal namespace around template instantiations.
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.
v | true if it is a namespace alias. |
bool Puma::CNamespaceInfo::isAlias | ( | ) | const [inline] |
Check if this is a namespace alias.