class CallbackSafeObject

Base class for objects that are callback safe. More...

 
LOGO
 Annotated List  Files  Globals  Hierarchy  Index  Top

Public Methods

Protected Methods

Protected Members


Detailed Description

Objects that wish to be callback safe should be derived from this class. The class works in conjunction with SafeCallbackBase and between them implement callback and callback-object tracking. When a CallbackSafeObject is destructed it informs all the callbacks that refer to it that this is the case and invalidates (sets to null) the object they point to.

 CallbackSafeObject ()

CallbackSafeObject

 ~CallbackSafeObject ()

~CallbackSafeObject

[virtual]

void  ref_cb (SafeCallbackBase* scb)

ref_cb

void  unref_cb (SafeCallbackBase* scb)

unref_cb

 CallbackSafeObject (const CallbackSafeObject&)

CallbackSafeObject

[protected]

CallbackSafeObject&  operator= (const CallbackSafeObject&)

operator=

[protected]

std::vector<SafeCallbackBase*> _cbs

_cbs

[protected]

inline void  ref_cb (SafeCallbackBase* scb)

ref_cb

[protected]

inline void  unref_cb (SafeCallbackBase* scb)

unref_cb

[protected]


Generated by: pavlin on kobe.xorp.net on Wed Jan 7 19:10:36 2009, using kdoc 2.0a54+XORP.