Puma Reference Manual Puma: Puma::CLocalScope Class Reference



Puma::CLocalScope Class Reference

Semantic information about a local scope in a function body, also called block scope. More...

#include <Puma/CLocalScope.h>

Inherits Puma::CStructure.

List of all members.

Public Member Functions

 CLocalScope ()
 Constructor.
 ~CLocalScope ()
 Destructor.
CLocalScopeTop () const
 Get the outermost local scope in a nested hierarchy of local scopes.
CFunctionInfoFunction () const
 Get the function containing the local scope.

Detailed Description

Semantic information about a local scope in a function body, also called block scope.

Examples for local scopes:

 { <local scope> }
 if (...) <local scope>;
 while (...) { <local scope> } 

Constructor & Destructor Documentation

Puma::CLocalScope::CLocalScope (  )  [inline]

Constructor.

Puma::CLocalScope::~CLocalScope (  )  [inline]

Destructor.

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


Member Function Documentation

CFunctionInfo* Puma::CLocalScope::Function (  )  const

Get the function containing the local scope.

Returns:
The function or NULL if no function found.
CLocalScope* Puma::CLocalScope::Top (  )  const

Get the outermost local scope in a nested hierarchy of local scopes.




Puma Reference Manual. Created on 11 Sep 2009.