OpendTect-6_4  6.4
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
ObjDisposer Class Reference

Disposes after a couple of msecs to avoid all kinds of trouble. More...

Inheritance diagram for ObjDisposer:
[legend]

Public Member Functions

void go (CallBacker *)
 
- Public Member Functions inherited from CallBacker
 CallBacker ()
 
 CallBacker (const CallBacker &)
 
virtual ~CallBacker ()
 
bool attachCB (NotifierAccess &, const CallBack &, bool onlyifnew=false)
 
bool attachCB (NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false)
 
void detachCB (NotifierAccess &, const CallBack &)
 
void detachCB (NotifierAccess *notif, const CallBack &cb)
 
bool isNotifierAttached (NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 

Protected Member Functions

 ObjDisposer ()
 
void doDel (CallBacker *)
 
- Protected Member Functions inherited from CallBacker
void detachAllNotifiers ()
 Call from the destructor of your inherited object. More...
 

Protected Attributes

ObjectSet< Timertimers_
 
ObjectSet< CallBackerobjs_
 

Friends

ObjDisposerOBJDISP ()
 

Detailed Description

Disposes after a couple of msecs to avoid all kinds of trouble.

The CallBack should have the object to be disposed of as CallBacker. Usage like:

nonmdldlg->windowClosed.notify( mCB(OBJDISP(),ObjDisposer,go) );

Constructor & Destructor Documentation

ObjDisposer::ObjDisposer ( )
protected

Member Function Documentation

void ObjDisposer::doDel ( CallBacker )
protected
void ObjDisposer::go ( CallBacker )

Friends And Related Function Documentation

ObjDisposer* OBJDISP ( )
friend

Member Data Documentation

ObjectSet<CallBacker> ObjDisposer::objs_
protected
ObjectSet<Timer> ObjDisposer::timers_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019