Puma Reference Manual | Puma: Puma::CUsingInfo Class Reference |
Semantic information about a using-directive. More...
#include <Puma/CUsingInfo.h>
Public Member Functions | |
CUsingInfo () | |
Constructor. | |
~CUsingInfo () | |
Destructor. | |
CNamespaceInfo * | Namespace () const |
Get the semantic information for the namespace whose names are made visible. | |
void | Namespace (CNamespaceInfo *info) |
Set the semantic information for the namespace whose names are made visible. |
Semantic information about a using-directive.
The using-directive makes names from a namespace visible in another namespace or scope.
Example:
namespace A { class X {}; } using namespace A; // make A::X visible in global scope X x; // resolves to A::X
Puma::CUsingInfo::CUsingInfo | ( | ) | [inline] |
Constructor.
Puma::CUsingInfo::~CUsingInfo | ( | ) |
Destructor.
If the object type is CObjectInfo::USING_INFO, then CObjectInfo::CleanUp() is called.
CNamespaceInfo * Puma::CUsingInfo::Namespace | ( | ) | const [inline] |
Get the semantic information for the namespace whose names are made visible.
void Puma::CUsingInfo::Namespace | ( | CNamespaceInfo * | info | ) | [inline] |
Set the semantic information for the namespace whose names are made visible.
info | The namespace. |