#include <Callback.h>
Inheritance diagram for Core::Callback< ReturnT >:
Public Member Functions | |
virtual int | argumentsNumber (void) abstract |
virtual ReturnT | execute (void) |
virtual ReturnT | executeWith (Object *) |
It's usefull on places where you can think about passing a function as an argument of some other function. It's used for example by Thread and Promise classes but is hidden and you don't need to bother with that ugly template stuff. This class is abstract one. If you really need it use Callback0 or Callback1.
Definition at line 40 of file Callback.h.
|
Reimplemented in Core::Callback0< ListenerT, ReturnT >, and Core::Callback1< ListenerT, ReturnT, Param1T >. |
|
Reimplemented in Core::Callback0< ListenerT, ReturnT >, and Core::Callback1< ListenerT, ReturnT, Param1T >. Definition at line 47 of file Callback.h. Referenced by Core::Callback< void >::executeWith(), and Core::Callback< Object * >::executeWith(). 00048 { 00049 shouldNotImplement(__PRETTY_FUNCTION__); 00050 return nil; 00051 }
|
|
Reimplemented in Core::Callback1< ListenerT, ReturnT, Param1T >. Definition at line 53 of file Callback.h. Referenced by OS::Promise::executePromise(). 00054 { 00055 return execute(); 00056 }
|