CXXR (C++ R)
|
Object constraining lifetime of NodeStack entries. More...
#include <NodeStack.hpp>
Public Member Functions | |
Scope (NodeStack *stack) | |
Constructor. |
Friends | |
class | NodeStack |
Object constraining lifetime of NodeStack entries.
Scope objects must be declared on the processor stack (i.e. as C++ automatic variables). Each Scope is associated with a particular NodeStack object. Any entry pushed onto that NodeStack object during the lifetime of the Scope object will be automatically popped off when that lifetime comes to an end, i.e. when the Scope object itself goes out of scope.
|
inline |