CVCL::ContextObjChain Class Reference
[Context Management]

#include <context.h>

Collaboration diagram for CVCL::ContextObjChain:

Collaboration graph
[legend]
List of all members.

Public Member Functions

Private Member Functions

Private Attributes

Friends


Detailed Description

Description: An element of a doubly linked list holding a copy of ContextObj in a scope. It is made separate from ContextObj to keep the list pointers valid in all scopes at all times, so that the object can be easily removed from the list when the master ContextObj is destroyed.

Definition at line 120 of file context.h.


Constructor & Destructor Documentation

ContextObjChain::ContextObjChain ContextObj data,
ContextObj master,
ContextObjChain restore
[private]
 

Private constructor (only friends can use it).

Definition at line 121 of file context.cpp.

ContextObjChain::~ContextObjChain  ) 
 

Destructor.

Definition at line 156 of file context.cpp.

References d_data, d_master, and CVCL::ContextObj::d_restore.


Member Function Documentation

ContextObjChain * ContextObjChain::restore void   )  [private]
 

Restore from d_data to d_master.

Definition at line 127 of file context.cpp.

References CVCL::Scope::addToChain(), d_data, d_master, CVCL::ContextObj::d_restore, d_restore, d_restoreChainNext, CVCL::ContextObj::d_scope, CVCL::Scope::prevScope(), CVCL::ContextObj::restoreData(), and CVCL::ContextObj::setNull().

Referenced by CVCL::Scope::restore().

CVCL::ContextObjChain::IF_DEBUG std::string name() const ;   ) 
 


Friends And Related Function Documentation

friend class Scope [friend]
 

Definition at line 121 of file context.h.

friend class ContextObj [friend]
 

Definition at line 122 of file context.h.

friend class CDFlags [friend]
 

Definition at line 123 of file context.h.


Member Data Documentation

ContextObjChain* CVCL::ContextObjChain::d_restoreChainNext [private]
 

Next link in chain.

Definition at line 126 of file context.h.

Referenced by CVCL::Scope::addToChain(), restore(), CVCL::ContextObj::~ContextObj(), and CVCL::Scope::~Scope().

ContextObjChain** CVCL::ContextObjChain::d_restoreChainPrev [private]
 

Pointer to the pointer of the previous object which points to us. This makes a doubly-linked list for easy element deletion.

Definition at line 131 of file context.h.

Referenced by CVCL::Scope::addToChain(), and CVCL::ContextObj::~ContextObj().

ContextObjChain* CVCL::ContextObjChain::d_restore [private]
 

Pointer to the previous copy which belongs to the same master.

Definition at line 134 of file context.h.

Referenced by restore(), and CVCL::ContextObj::~ContextObj().

ContextObj* CVCL::ContextObjChain::d_data [private]
 

Pointer to copy of master to be restored when restore() is called.

Definition at line 137 of file context.h.

Referenced by restore(), and ~ContextObjChain().

ContextObj* CVCL::ContextObjChain::d_master [private]
 

Pointer to the master object.

Definition at line 140 of file context.h.

Referenced by restore(), ~ContextObjChain(), and CVCL::Scope::~Scope().


The documentation for this class was generated from the following files:
Generated on Thu Apr 13 16:57:42 2006 for CVC Lite by  doxygen 1.4.4