33 template<
class CallbackType>
42 template<
class CallbackType>
53 template<
class CallbackType>
62 template<
class CallbackType>
67 cbr_.append(static_cast<CallbackType*>(
this));
75 template<
class CallbackType>
78 if (Callback<CallbackType>::link::registered())
80 CallbackType* ptr = cbr_.remove(static_cast<CallbackType*>(
this));
bool checkOut()
Check-out Callback from CallbackRegistry.
virtual ~Callback()
Destructor.
Base class with which callbacks are registered.
bool checkIn()
Register Callback with CallbackRegistry.
Callback(CallbackRegistry< CallbackType > &)
Construct and register with CallbackRegistry.
Abstract class to handle automatic call-back registration with the CallbackRegistry. Derive from this class and extend by adding the appropriate callback functions.