Puma Reference Manual Puma: Puma::CLocalScope Class Reference



Puma::CLocalScope Class Reference

#include <Puma/CLocalScope.h>

Inheritance diagram for Puma::CLocalScope:

Inheritance graph

List of all members.


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> } 

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.

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

CLocalScope* Puma::CLocalScope::Top (  )  const

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

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

Get the function containing the local scope.

Returns:
The function or NULL if no function found.




Puma Reference Manual. Created on 11 Jul 2008.