OpendTect  6.3
Public Member Functions | List of all members
CNotifier< T, PayLoad > Class Template Reference

Notifier with automatic capsule creation. More...

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

Public Member Functions

 CNotifier (T *cb)
 
void trigger (PayLoad pl)
 
void trigger (PayLoad pl, CallBacker *cb)
 
void trigger (PayLoad pl, T &t)
 
- Public Member Functions inherited from NotifierAccess
 NotifierAccess (const NotifierAccess &)
 
 NotifierAccess ()
 
virtual ~NotifierAccess ()
 
void notify (const CallBack &, bool first=false) const
 
bool notifyIfNotNotified (const CallBack &) const
 
void remove (const CallBack &) const
 
bool removeWith (const CallBacker *, bool wait=true) const
 
void transferCBSTo (const NotifierAccess &, const CallBacker *only_for) const
 
bool isEnabled () const
 
void enable (bool yn=true)
 
void disable ()
 
bool isEmpty () const
 
bool willCall (const CallBacker *) const
 
bool isShutdownSubscribed (const 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 (const CallBacker *) const
 
bool removeShutdownSubscription (const CallBacker *, bool wait) const
 
- Static Protected Member Functions inherited from NotifierAccess
static void doTrigger (CallBackSet &, const CallBacker *)
 
- Protected Attributes inherited from NotifierAccess
ObjectSet< const CallBackershutdownsubscribers_
 
Threads::Lock shutdownsubscriberlock_
 

Detailed Description

template<class T, class PayLoad>
class CNotifier< T, PayLoad >

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 PayLoad>
CNotifier< T, PayLoad >::CNotifier ( T *  cb)
inline

Member Function Documentation

template<class T, class PayLoad>
void CNotifier< T, PayLoad >::trigger ( PayLoad  pl)
inline
template<class T, class PayLoad>
void CNotifier< T, PayLoad >::trigger ( PayLoad  pl,
CallBacker cb 
)
inline
template<class T, class PayLoad>
void CNotifier< T, PayLoad >::trigger ( PayLoad  pl,
T &  t 
)
inline

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