CVC3
|
#include <context.h>
Author: Clark Barrett
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.
CVC3::Scope::Scope | ( | Context * | context, |
ContextMemoryManager * | cmm, | ||
Scope * | prevScope = NULL |
||
) | [inline] |
Scope* CVC3::Scope::prevScope | ( | ) | const [inline] |
Access functions.
Definition at line 94 of file context.h.
References d_prevScope.
Referenced by CVC3::Context::pop(), Scope(), CVC3::CDFlags::update(), and CVC3::Context::~Context().
int CVC3::Scope::level | ( | void | ) | const [inline] |
Definition at line 95 of file context.h.
References d_level.
Referenced by CVC3::Context::popto(), Scope(), and CVC3::CDFlags::update().
Context* CVC3::Scope::getContext | ( | ) | const [inline] |
ContextMemoryManager* CVC3::Scope::getCMM | ( | ) | const [inline] |
Definition at line 99 of file context.h.
References d_cmm.
Referenced by CVC3::Context::pop(), CVC3::CDFlags::update(), and CVC3::Context::~Context().
void* CVC3::Scope::operator new | ( | size_t | size, |
MemoryManager * | mm | ||
) | [inline] |
Definition at line 101 of file context.h.
References CVC3::MemoryManager::newData().
void CVC3::Scope::operator delete | ( | void * | pMem, |
MemoryManager * | mm | ||
) | [inline] |
Definition at line 103 of file context.h.
References CVC3::MemoryManager::deleteData().
void Scope::finalize | ( | void | ) |
Called by ~ContextManager.
Definition at line 37 of file context.cpp.
References CVC3::ContextObjChain::d_master, CVC3::ContextObj::d_restore, CVC3::ContextObjChain::d_restoreChainNext, and CVC3::ContextObj::d_scope.
Referenced by CVC3::Context::~Context().
void Scope::check | ( | void | ) |
Check for memory leaks.
Definition at line 55 of file context.cpp.
References CVC3::ContextObjChain::d_restoreChainNext, std::endl(), and IF_DEBUG.
Referenced by CVC3::Context::pop().
unsigned long Scope::getMemory | ( | int | verbosity | ) |
Compute memory used.
Definition at line 82 of file context.cpp.
References std::endl().
Referenced by CVC3::Context::getMemory().
friend class ContextObj [friend] |
friend class ContextObjChain [friend] |
Context* CVC3::Scope::d_context [private] |
Context that created this scope.
Definition at line 65 of file context.h.
Referenced by getContext().
ContextMemoryManager* CVC3::Scope::d_cmm [private] |
Scope* CVC3::Scope::d_prevScope [private] |
int CVC3::Scope::d_level [private] |
ContextObjChain* CVC3::Scope::d_restoreChain [private] |