1 #ifndef METHOD_REQUEST_INCLUDED 2 #define METHOD_REQUEST_INCLUDED 11 virtual void execute();
14 template<
int ...>
struct seq {};
15 template<
int N,
int ...S>
struct gens :
gens<N-1, N-1, S...> {};
16 template<
int ...S>
struct gens<0, S...>{
typedef seq<S...>
type; };
18 template <
class AO,
typename ...Args>
22 std::tuple<Args...> params;
23 void (AO::*method_to_call)(Args...) ;
29 method_to_call(method)
35 callFunc(
typename gens<
sizeof...(Args)>::type());
41 (
object.*method_to_call)(std::get<S>(params) ...);
46 #define MR1(classtype,object,funct,argtype,argval) new MethodRequest<classtype, argtype>( object, & classtype::funct, argval) 48 #define MR0(classtype,object,funct) new MethodRequest<classtype >( object, & classtype::funct ) Definition: MethodRequest.h:15
Definition: MethodRequest.h:6
Definition: MethodRequest.h:14
Definition: MethodRequest.h:19