ScopeBinder Struct Reference

A ScopeBinder object is created to save and restore the value of the variable, outer_scope. You save the old one at construction of the ScopeBinder object. On its destruction, the old value is restored. More...

Collaboration diagram for ScopeBinder:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ScopeBinder (string new_scope)
 saved value of the 'outer_scope' variable
 ScopeBinder (string new_scope)
 saved value of the 'outer_scope' variable
 ~ScopeBinder ()
 restore scope variable value saved by the constructor
 ~ScopeBinder ()
 restore scope variable value saved by the constructor

Public Attributes

FunctionScope saved_scope
string saved_scope

Detailed Description

A ScopeBinder object is created to save and restore the value of the variable, outer_scope. You save the old one at construction of the ScopeBinder object. On its destruction, the old value is restored.

Definition at line 641 of file cpptagdb.cxx.


Constructor & Destructor Documentation

ScopeBinder ( string  new_scope  ) 

saved value of the 'outer_scope' variable

save the current scope and set the globa scope variable to be a new value

Definition at line 650 of file cpptagdb.cxx.

~ScopeBinder (  ) 

restore scope variable value saved by the constructor

Definition at line 658 of file cpptagdb.cxx.

Here is the call graph for this function:

ScopeBinder ( string  new_scope  ) 

saved value of the 'outer_scope' variable

save the current scope and set the globa scope variable to be a new value

Definition at line 1255 of file cca.cxx.

Here is the call graph for this function:

~ScopeBinder (  ) 

restore scope variable value saved by the constructor

Definition at line 1263 of file cca.cxx.


Member Data Documentation

Definition at line 1253 of file cca.cxx.

string saved_scope

Definition at line 648 of file cpptagdb.cxx.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 29 22:51:58 2012 for CXXUtilities by  doxygen 1.6.3