c++-gtk-utils
|
#include <callback.h>
Public Types | |
typedef void(* | Func) (FreeArgs...) |
Public Member Functions | |
void | dispatch (typename Cgu::Param< FreeArgs >::ParamType... free_args) const |
Callback0_static (Func func_) | |
Public Member Functions inherited from Cgu::Callback::CallbackArg< FreeArgs... > | |
CallbackArg () | |
virtual | ~CallbackArg () |
typedef void(* Cgu::Callback::Callback0_static< FreeArgs >::Func) (FreeArgs...) |
|
inline |
|
inlinevirtual |
This will execute the referenced function, callable object or class method encapsulated by this class. It will only throw if the dispatched function, callable object or class method throws, or if the copy constructor of a free or bound argument throws and it is not a reference argument. It is thread safe if the referenced function or class method is thread safe.
args | The unbound arguments to be passed to the referenced function, callable object or class method, if any. |
Implements Cgu::Callback::CallbackArg< FreeArgs... >.