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...
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 |
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.
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.
ScopeBinder | ( | string | new_scope | ) |
~ScopeBinder | ( | ) |
string saved_scope |
Definition at line 648 of file cpptagdb.cxx.