#include <context.h>
Collaboration diagram for CVCL::Scope:
Created: Thu Feb 13 00:19:15 2003
A scope encapsulates the portion of a context which has changed since the last call to push(). Thus, when pop() is called, everything in this scope is restored to its previous state.
Definition at line 66 of file context.h.
|
Constructor.
Definition at line 53 of file context.cpp. References d_delayDelete, d_level, IF_DEBUG(), and level(). |
|
Delete the scope (only free up memory, do not call restore()).
Definition at line 62 of file context.cpp. References d_delayDelete, d_level, CVCL::ContextObjChain::d_master, d_restoreChain, CVCL::ContextObjChain::d_restoreChainNext, CVCL::ContextObj::d_scope, CVCL::debugger, std::endl(), CVCL::Debug::flag(), CVCL::Debug::getOS(), IF_DEBUG(), and CVCL::Debug::trace(). |
|
Called by ContextObj when created.
Definition at line 42 of file context.cpp. References d_restoreChain, CVCL::ContextObjChain::d_restoreChainNext, and CVCL::ContextObjChain::d_restoreChainPrev. Referenced by CVCL::ContextObjChain::restore(), CVCL::ContextObj::update(), and CVCL::CDFlags::update(). |
|
Access functions.
Definition at line 99 of file context.h. References d_prevScope. Referenced by CVCL::Context::pop(), CVCL::ContextObjChain::restore(), CVCL::ContextObj::update(), CVCL::CDFlags::update(), and CVCL::Context::~Context(). |
|
Definition at line 100 of file context.h. References d_level. Referenced by CVCL::ContextObj::isCurrent(), CVCL::Context::level(), CVCL::ContextObj::level(), Scope(), CVCL::ContextObj::update(), and CVCL::CDFlags::update(). |
|
Restore all the values.
Definition at line 106 of file context.cpp. References d_delayDelete, d_restoreChain, and CVCL::ContextObjChain::restore(). Referenced by CVCL::Context::pop(). |
|
|
|
|
|
|
|
Context that created this scope.
Definition at line 71 of file context.h. Referenced by isCurrent(), topScope(), and CVCL::Context::~Context(). |
|
Previous scope in this context.
Definition at line 74 of file context.h. Referenced by prevScope(). |
|
Scope level.
|
|
Linked list of objects which are "current" in this scope, and thus need to be restored when the scope is deleted.
Definition at line 81 of file context.h. Referenced by addToChain(), restore(), and ~Scope(). |
|
Deleted ContextObj's (queued up for deletion during restore()).
|
|
Set while inside restore() or ~Scope() methods.
Definition at line 87 of file context.h. Referenced by restore(), Scope(), CVCL::ContextObj::~ContextObj(), and ~Scope(). |