Puma Reference Manual Puma: Puma::CNamespaceInfo Class Reference



Puma::CNamespaceInfo Class Reference

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

#include <Puma/CNamespaceInfo.h>

Inheritance diagram for Puma::CNamespaceInfo:
Inheritance graph

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:
idThe 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

bool Puma::CNamespaceInfo::aroundInstantiation ( ) const [inline]

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

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

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

Parameters:
vtrue if it is such an internal namespace.
bool Puma::CNamespaceInfo::isAlias ( ) const [inline]

Check if this is a namespace alias.

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

Set whether this is a namespace alias.

Parameters:
vtrue if it is a namespace alias.