OpendTect-6_4  6.4
Public Member Functions | List of all members
CNotifier< T, C > Class Template Reference

Notifier with automatic capsule creation. More...

Inheritance diagram for CNotifier< T, C >:
[legend]

Public Member Functions

void trigger (C c, T &t)
 
 CNotifier (T *cb)
 
void trigger (C c, CallBacker *cb=0)
 
- Public Member Functions inherited from NotifierAccess
 NotifierAccess (const NotifierAccess &)
 
 NotifierAccess ()
 
virtual ~NotifierAccess ()
 
void notify (const CallBack &, bool first=false)
 
bool notifyIfNotNotified (const CallBack &)
 
void remove (const CallBack &)
 
bool removeWith (CallBacker *, bool wait=true)
 
bool isEnabled () const
 
bool enable (bool yn=true)
 
bool disable ()
 
bool isEmpty () const
 
bool willCall (CallBacker *) const
 
bool isShutdownSubscribed (CallBacker *) const
 Only for debugging purposes, don't use. More...
 

Additional Inherited Members

- Public Attributes inherited from NotifierAccess
CallBackSetcbs_
 
CallBackercber_
 
- Protected Member Functions inherited from NotifierAccess
void addShutdownSubscription (CallBacker *)
 
bool removeShutdownSubscription (CallBacker *, bool wait)
 
- Static Protected Member Functions inherited from NotifierAccess
static void doTrigger (CallBackSet &, CallBacker *c, CallBacker *exclude)
 
- Protected Attributes inherited from NotifierAccess
ObjectSet< CallBackershutdownsubscribers_
 
Threads::Lock shutdownsubscriberlock_
 

Detailed Description

template<class T, class C>
class CNotifier< T, C >

Notifier with automatic capsule creation.

When non-callbacker data needs to be passed, you can put it in a capsule.

You'll need to define:

Constructor & Destructor Documentation

template<class T, class C>
CNotifier< T, C >::CNotifier ( T *  cb)
inline

Member Function Documentation

template<class T, class C>
void CNotifier< T, C >::trigger ( c,
T &  t 
)
inline
template<class T, class C>
void CNotifier< T, C >::trigger ( c,
CallBacker cb = 0 
)
inline

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