Puma::CLocalScope Class Reference

#include <Puma/infos/CLocalScope.h>

Inheritance diagram for Puma::CLocalScope:

Inheritance graph

List of all members.


Detailed Description

A CLocalScope object represents a local scope in a function body also called block scope. Examples for local scopes are:

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

Public Member Functions

 CLocalScope ()
 ~CLocalScope ()
CLocalScopeTop () const
CFunctionInfoFunction () const


Constructor & Destructor Documentation

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

Create a new local scope.

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

Destruct the local scope. If the object id is LOCAL_INFO, Puma::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 info or NULL if function not found.


Generated on Sat May 10 03:03:50 2008 for Puma by  doxygen 1.5.5