22 #ifndef COMMON_CALLBACK_H 23 #define COMMON_CALLBACK_H 64 typedef void(*GlobalFunction)(T result);
65 GlobalFunction _callback;
71 if (_callback) _callback(data);
93 typedef void(T::*TMethod)(S);
97 Callback(T *
object, TMethod method): _object(
object), _method(method) {}
136 TCallbackMethod _method;
137 BaseCallback<OS> *_outerCallback;
139 CallbackBridge(T *
object, TCallbackMethod method, BaseCallback<OS> *outerCallback):
140 _object(
object), _method(method), _outerCallback(outerCallback) {}
142 void operator()(S data) { (_object->*_method)(_outerCallback, data); }
Definition: callback.h:63
Definition: callback.h:91
Definition: callback.h:133
virtual void operator()(S data)=0
virtual void operator()(T data)
Definition: callback.h:70
Definition: algorithm.h:29
Definition: callback.h:49
void operator()(S data)
Definition: callback.h:142
void operator()(S data)
Definition: callback.h:99