Puma Reference Manual Puma: Puma::CUsingInfo Class Reference



Puma::CUsingInfo Class Reference

Semantic information about a using-directive. More...

#include <Puma/CUsingInfo.h>

Inherits Puma::CScopeRequest.

List of all members.

Public Member Functions

 CUsingInfo ()
 Constructor.
 ~CUsingInfo ()
 Destructor.
CNamespaceInfoNamespace () 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.

Detailed Description

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

Constructor & Destructor Documentation

Puma::CUsingInfo::CUsingInfo (  )  [inline]

Constructor.

Puma::CUsingInfo::~CUsingInfo (  ) 

Destructor.

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


Member Function Documentation

void Puma::CUsingInfo::Namespace ( CNamespaceInfo info  )  [inline]

Set the semantic information for the namespace whose names are made visible.

Parameters:
info The namespace.
CNamespaceInfo * Puma::CUsingInfo::Namespace (  )  const [inline]

Get the semantic information for the namespace whose names are made visible.




Puma Reference Manual. Created on 24 Nov 2009.