6 #ifndef __FWCOM_UTIL_AUTOBIND_HPP__ 7 #define __FWCOM_UTIL_AUTOBIND_HPP__ 9 #include "fwCom/util/convert_function_type.hpp" 32 template<
typename F,
int PLACEHOLDERS_NB >
36 template<
typename F >
39 typedef typename convert_function_type< F >::type FunctionType;
41 template<
typename W,
typename ... A >
42 static std::function< FunctionType > wrap( W f, A ...
a );
47 template<
typename F >
50 typedef typename convert_function_type< F >::type FunctionType;
52 template<
typename W,
typename ... A >
53 static std::function< FunctionType > wrap( W f, A ...
a );
57 template<
typename F >
60 typedef typename convert_function_type< F >::type FunctionType;
62 template<
typename W,
typename ... A >
63 static std::function< FunctionType > wrap( W f, A ...
a );
67 template<
typename F >
70 typedef typename convert_function_type< F >::type FunctionType;
72 template<
typename W,
typename ... A >
73 static std::function< FunctionType > wrap( W f, A ...
a );
77 template<
typename F >
80 typedef typename convert_function_type< F >::type FunctionType;
82 template<
typename W,
typename ... A >
83 static std::function< FunctionType > wrap( W f, A ...
a );
87 template<
typename F >
90 typedef typename convert_function_type< F >::type FunctionType;
92 template<
typename W,
typename ... A >
93 static std::function< FunctionType > wrap( W f, A ...
a );
97 template<
typename F >
100 typedef typename convert_function_type< F >::type FunctionType;
102 template<
typename W,
typename ... A >
103 static std::function< FunctionType > wrap( W f, A ...
a );
107 template<
typename F >
110 typedef typename convert_function_type< F >::type FunctionType;
112 template<
typename W,
typename ... A >
113 static std::function< FunctionType > wrap( W f, A ...
a );
117 template<
typename F >
120 typedef typename convert_function_type< F >::type FunctionType;
122 template<
typename W,
typename ... A >
123 static std::function< FunctionType > wrap( W f, A ...
a );
127 template<
typename F >
130 typedef typename convert_function_type< F >::type FunctionType;
132 template<
typename W,
typename ... A >
133 static std::function< FunctionType > wrap( W f, A ...
a );
144 template <
typename F,
typename ... A >
145 std::function< typename convert_function_type< F >::type >
autobind(F f, A ...
a);
Namespace containing fw4spl communication tools.
Automatic binding class. This class allow to bind automatically a function/method with the right numb...
std::function< typename convert_function_type< F >::type > autobind(F f, A...a)
Automatic bind of given function.