CVC3
2.4.1
|
#include <context.h>
Public Member Functions | |
ContextObj (Context *context) | |
Create a new ContextObj. | |
virtual | ~ContextObj () |
int | level () const |
bool | isCurrent (int scope=-1) const |
void | makeCurrent (int scope=-1) |
void * | operator new (size_t size, MemoryManager *mm) |
void | operator delete (void *pMem, MemoryManager *mm) |
void * | operator new (size_t size, bool b) |
void | operator delete (void *pMem, bool b) |
void | operator delete (void *) |
Protected Member Functions | |
ContextObj (const ContextObj &co) | |
Copy constructor (defined mainly for debugging purposes) | |
ContextObj & | operator= (const ContextObj &co) |
Assignment operator (defined mainly for debugging purposes) | |
virtual ContextObj * | makeCopy (ContextMemoryManager *cmm)=0 |
Make a copy of the current object so it can be restored to its current state. | |
virtual void | restoreData (ContextObj *data) |
Restore the current object from the given data. | |
const ContextObj * | getRestore () |
virtual void | setNull (void)=0 |
Set the current object to be invalid. | |
ContextMemoryManager * | getCMM () |
Return our name (for debugging) |
Private Member Functions | |
void | update (int scope=-1) |
Update on the given scope, on the current scope if 'scope' == -1. |
Private Attributes | |
Scope * | d_scope |
Last scope in which this object was modified. | |
ContextObjChain * | d_restore |
The list of values on previous scopes; our destructor should clean up those. |
Friends | |
class | Scope |
class | ContextObjChain |
class | CDFlags |
Description: This is a generic class from which all objects that are context-dependent should inherit. Subclasses need to implement makeCopy, restoreData, and setNull.
|
inlineprotected |
Copy constructor (defined mainly for debugging purposes)
Definition at line 220 of file context.h.
References DebugAssert, and IF_DEBUG.
|
virtual |
Definition at line 179 of file context.cpp.
References CVC3::ContextObjChain::d_master, CVC3::ContextObjChain::d_restore, CVC3::ContextObjChain::d_restoreChainNext, CVC3::ContextObjChain::d_restoreChainPrev, FatalAssert, and IF_DEBUG.
|
private |
Update on the given scope, on the current scope if 'scope' == -1.
Definition at line 153 of file context.cpp.
References d_restore, d_scope, DebugAssert, IF_DEBUG, and CVC3::int2string().
|
inlineprotected |
Assignment operator (defined mainly for debugging purposes)
Definition at line 229 of file context.h.
References DebugAssert.
|
protectedpure virtual |
Make a copy of the current object so it can be restored to its current state.
|
inlineprotectedvirtual |
Restore the current object from the given data.
Definition at line 239 of file context.h.
References FatalAssert.
|
inlineprotected |
Definition at line 244 of file context.h.
References CVC3::ContextObjChain::d_data, and CVC3::ContextObjChain::d_restore.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::pop_back().
|
protectedpure virtual |
Set the current object to be invalid.
|
inlineprotected |
|
inline |
Definition at line 269 of file context.h.
Referenced by CVC3::Expr::getFindLevel(), and CVC3::CDFlags::update().
|
inline |
Definition at line 270 of file context.h.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::pop_back().
|
inline |
Definition at line 274 of file context.h.
Referenced by CVC3::CDList< SmartCDO< Theorem > >::push_back(), CVC3::CDO< Rational >::set(), CVC3::CDOmapOrdered< Key, Data >::set(), and CVC3::CDOmap< Expr, Expr, HashFcn >::set().
|
inline |
Definition at line 277 of file context.h.
References CVC3::MemoryManager::newData().
|
inline |
Definition at line 280 of file context.h.
References CVC3::MemoryManager::deleteData().
|
inline |
|
inline |
|
friend |
|
private |
Last scope in which this object was modified.
Definition at line 206 of file context.h.
Referenced by CVC3::Scope::finalize(), and update().
|
private |
The list of values on previous scopes; our destructor should clean up those.
Definition at line 210 of file context.h.
Referenced by CVC3::Scope::finalize(), CVC3::CDFlags::update(), and update().