sigx++
2.0.1
|
Asynchronous request functor for a sigx::threadable. More...
#include <request_f.h>
Public Types | |
typedef sigc::slot< void, T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 > | parent_type |
Public Member Functions | |
template<typename T_functor > | |
request_f (const T_functor &_A_func) | |
Constructs the request functor. More... | |
Asynchronous request functor for a sigx::threadable.
It saves you writing request methods that have to call a handler method for the request through a tunnel,like:
Instead,delegate it to the request functor:
It is derived from sigc::slot because a slot provides already all the necessary functionalities: takes a functor and creates a untyped slot representation,has function invokation operator ().
typedef sigc::slot<void,T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7> sigx::request_f< T_arg1, T_arg2, T_arg3, T_arg4, T_arg5, T_arg6, T_arg7 >::parent_type |
|
inlineexplicit |
Constructs the request functor.
_A_func | A dispatchable functor,i.e. a functor on a dispatchable's method or one explicitly created with dispatch_with(). |
References SIGX_STATIC_ASSERT.