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.

inline  CallbackSafeObject ()

CallbackSafeObject

 ~CallbackSafeObject ()

~CallbackSafeObject

[virtual]

inline void  ref_cb (SafeCallbackBase* scb)

ref_cb

inline 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 possum.icir.org on Wed Mar 21 11:22:16 2007, using kdoc $.