OpendTect  7.0
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 (const NotifierAccess &, const CallBack &, bool onlyifnew=false) const
 
bool attachCB (const NotifierAccess *notif, const CallBack &cb, bool onlyifnew=false) const
 
void detachAllNotifiers () const
 Call from the destructor of your inherited object. More...
 
void detachCB (const NotifierAccess &, const CallBack &) const
 
void detachCB (const NotifierAccess *notif, const CallBack &cb) const
 
virtual bool isCapsule () const
 
bool isNotifierAttached (const NotifierAccess *) const
 Only for debugging purposes, don't use. More...
 
void stopReceivingNotifications () const
 
virtual CallBackertrueCaller ()
 

Protected Member Functions

 ObjDisposer ()
 
void doDel (CallBacker *)
 

Protected Attributes

ObjectSet< CallBackerobjs_
 
ObjectSet< Timertimers_
 

Friends

ObjDisposerOBJDISP ()
 

Additional Inherited Members

- Static Public Member Functions inherited from CallBacker
static void createReceiverForCurrentThread ()
 
static void removeReceiverForCurrentThread ()
 

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::ObjDisposer ( )
protected

Member Function Documentation

◆ doDel()

void ObjDisposer::doDel ( CallBacker )
protected

◆ go()

void ObjDisposer::go ( CallBacker )

Friends And Related Function Documentation

◆ OBJDISP

ObjDisposer* OBJDISP ( )
friend

Member Data Documentation

◆ objs_

ObjectSet<CallBacker> ObjDisposer::objs_
protected

◆ timers_

ObjectSet<Timer> ObjDisposer::timers_
protected

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