16 template <
typename Ret,
typename Param0>
20 virtual Ret
invoke(Param0 param0) = 0;
26 template <
typename Ret,
typename Param0>
39 return (*
func_)(param0);
46 template <
typename Ret,
typename Param0,
typename T,
typename Method>
61 T *obj =
static_cast<T *
>(
object_);
68 template <
typename Ret,
typename Param0>
81 template <
typename T,
typename Method>
Ret(* func_)(Param0)
Definition: delegate.h:30
virtual Ret invoke(Param0 param0)
Definition: delegate.h:59
Static member function (or global function) callback is used to bind global or static class functions...
Definition: delegate.h:27
This is the DtMessage class.
Definition: message.h:20
void * object_
Definition: delegate.h:50
Method method_
Definition: delegate.h:51
Callback template the base abstract callback class that is used internally to the delegate...
Definition: delegate.h:17
virtual Ret invoke(Param0 param0)
Definition: delegate.h:37
DtDelegate< void, DtMessage * > DtMessageDelegate
create a typedef for message delegates that take a DtMessage* as a parameter and return a void type t...
Definition: delegate.h:98
StaticFunctionCallback(Ret(*func)(Param0))
Definition: delegate.h:33
Callback< Ret, Param0 > * callback_
Definition: delegate.h:72
Member function callback is used to bind class member functions The return type, single parameter...
Definition: delegate.h:47
~DtDelegate(void)
destructor
Definition: delegate.h:87
DtDelegate(Ret(*func)(Param0))
constructor using a static function
Definition: delegate.h:76
MethodCallback(void *object, Method method)
Definition: delegate.h:54
DtDelegate(T *object, Method method)
constructor using a class member functions
Definition: delegate.h:82
Delegate template for binding static or member functions for callback at later time The return type a...
Definition: delegate.h:69
Ret operator()(Param0 param0)
execute operator
Definition: delegate.h:90
virtual Ret invoke(Param0 param0)=0