OpendTect-6_4  6.4
Public Member Functions | Public Attributes | List of all members
CBCapsule< T > Class Template Reference

Capsule class to wrap any class into a CallBacker. More...

Inheritance diagram for CBCapsule< T >:
[legend]

Public Member Functions

 CBCapsule (T d, CallBacker *c)
 
- 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...
 

Public Attributes

data
 
CallBackercaller
 

Additional Inherited Members

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

Detailed Description

template<class T>
class CBCapsule< T >

Capsule class to wrap any class into a CallBacker.

Callback functions are defined as: void clss::func( CallBacker* ) Sometimes you want to pass other info. For this purpose, you can use the CBCapsule class, which isA CallBacker, but contains T data. For convenience, the originating CallBacker* is included, so the 'caller' will still be available.

Constructor & Destructor Documentation

template<class T>
CBCapsule< T >::CBCapsule ( d,
CallBacker c 
)
inline

Member Data Documentation

template<class T>
CallBacker* CBCapsule< T >::caller
template<class T>
T CBCapsule< T >::data

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