![]() |
CernVM-FS
2.12.0
|
#include <async.h>
Public Types | |
typedef void(* | CallbackFunction )(const ParamT &value) |
Public Member Functions | |
Callback (CallbackFunction function) | |
void | operator() (const ParamT &value) const |
![]() | |
virtual | ~CallbackBase () |
Private Attributes | |
CallbackFunction | function_ |
This callback function object can be used to call static members or global functions with the following signature: void <name>(ParamT <parameter>);
TODO: One might use varidic templates once C++11 will be supported, in order to allow for more than one parameter to be passed to the callback.
ParamT | the type of the parameter to be passed to the callback |
typedef void(* Callback< ParamT >::CallbackFunction)(const ParamT &value) |
|
inlineexplicit |
|
inlinevirtual |
Implements CallbackBase< ParamT >.
|
private |