#include <context.h>
Definition at line 306 of file context.h.
Context::Context | ( | ContextManager * | cm, | |
const std::string & | name, | |||
int | id | |||
) |
Context::~Context | ( | ) |
Definition at line 221 of file context.cpp.
References d_cmmStack, d_notifyObjList, d_topScope, CVC3::Scope::finalize(), CVC3::ContextMemoryManager::garbageCollect(), CVC3::Scope::getCMM(), and CVC3::Scope::prevScope().
ContextManager* CVC3::Context::getCM | ( | ) | const [inline] |
int CVC3::Context::id | ( | ) | const [inline] |
Scope* CVC3::Context::topScope | ( | ) | const [inline] |
Definition at line 334 of file context.h.
Referenced by CVC3::Scope::isCurrent(), popto(), and CVC3::Scope::topScope().
int CVC3::Context::level | ( | void | ) | const [inline] |
Definition at line 336 of file context.h.
Referenced by pop(), push(), and CVC3::ContextManager::scopeLevel().
void Context::push | ( | ) |
Definition at line 244 of file context.cpp.
References d_cmmStack, d_topScope, IF_DEBUG, level(), and CVC3::TRACE.
Referenced by CVC3::ContextManager::push().
void Context::pop | ( | ) |
Definition at line 266 of file context.cpp.
References CVC3::Scope::check(), d_cmmStack, d_notifyObjList, d_topScope, DebugAssert, CVC3::Scope::getCMM(), IF_DEBUG, level(), CVC3::ContextMemoryManager::pop(), CVC3::Scope::prevScope(), CVC3::Scope::restore(), and CVC3::TRACE.
Referenced by CVC3::ContextManager::pop(), and popto().
void Context::popto | ( | int | toLevel | ) |
Definition at line 296 of file context.cpp.
References CVC3::Scope::level(), pop(), and topScope().
Referenced by CVC3::ContextManager::popto().
void CVC3::Context::addNotifyObj | ( | ContextNotifyObj * | obj | ) | [inline] |
void Context::deleteNotifyObj | ( | ContextNotifyObj * | obj | ) |
Definition at line 302 of file context.cpp.
References d_notifyObjList.
Referenced by CVC3::ContextNotifyObj::~ContextNotifyObj().
unsigned long Context::getMemory | ( | int | verbosity | ) |
Definition at line 312 of file context.cpp.
References d_cmmStack, d_name, d_notifyObjList, d_topScope, CVC3::Scope::getMemory(), CVC3::MemoryTracker::getString(), CVC3::MemoryTracker::getVecAndDataP(), and CVC3::MemoryTracker::print().
ContextManager* CVC3::Context::d_cm [private] |
std::string CVC3::Context::d_name [private] |
int CVC3::Context::d_id [private] |
Scope* CVC3::Context::d_topScope [private] |
Pointer to top and bottom scopes of context.
Definition at line 317 of file context.h.
Referenced by Context(), getMemory(), pop(), push(), and ~Context().
Scope* CVC3::Context::d_bottomScope [private] |
std::vector<ContextNotifyObj*> CVC3::Context::d_notifyObjList [private] |
List of objects to notify with every pop.
Definition at line 321 of file context.h.
Referenced by deleteNotifyObj(), getMemory(), pop(), and ~Context().
std::vector<ContextMemoryManager*> CVC3::Context::d_cmmStack [private] |
Stack of free ContextMemoryManager's.
Definition at line 324 of file context.h.
Referenced by getMemory(), pop(), push(), and ~Context().