Context Management
[Building Blocks]

Collaboration diagram for Context Management:

Classes

Functions


Detailed Description

Infrastructure for backtrackable data structures.

Function Documentation

bool CVC3::Scope::isCurrent ( void   )  const [inline, inherited]

Definition at line 342 of file context.h.

References CVC3::Scope::d_context, and CVC3::Context::topScope().

void CVC3::Scope::addToChain ( ContextObjChain obj  )  [inline, private, inherited]

Called by ContextObj when created.

Definition at line 345 of file context.h.

References CVC3::Scope::d_restoreChain, CVC3::ContextObjChain::d_restoreChainNext, and CVC3::ContextObjChain::d_restoreChainPrev.

Referenced by CVC3::ContextObj::update(), and CVC3::CDFlags::update().

Scope * CVC3::Scope::topScope (  )  const [inline, inherited]

Definition at line 353 of file context.h.

References CVC3::Scope::d_context, and CVC3::Context::topScope().

Referenced by CVC3::ContextObj::update().

void CVC3::Scope::restore ( void   )  [inline, inherited]

Restore all the values.

Definition at line 355 of file context.h.

References CVC3::Scope::d_restoreChain, and CVC3::ContextObjChain::restore().

Referenced by CVC3::Context::pop().

CVC3::ContextObj::ContextObj ( Context context,
bool  atBottomScope = true 
) [inline, inherited]

Create a new ContextObj.

The initial scope is set to the bottom scope by default, to reduce the work of pop() (otherwise, if the object is defined only on a very high scope, its scope will be moved down with each pop). If 'atBottomScope' == false, the scope is set to the current scope.

Definition at line 366 of file context.h.

References DebugAssert, and IF_DEBUG.


Generated on Tue Jul 3 14:35:21 2007 for CVC3 by  doxygen 1.5.1