2 /* Do not edit! -- generated file */
5 #ifndef _SIGC_MACROS_METHOD_SLOTHM4_
6 #define _SIGC_MACROS_METHOD_SLOTHM4_
8 #include <sigc++/slot.h>
9 #include <sigc++/functors/mem_fun.h>
11 #ifndef LIBSIGC_DISABLE_DEPRECATED
15 /** Creates a functor of type Sigc::Slot1 that wraps a method.
17 * @param _A_func Pointer to method that should be wrapped.
18 * @return Functor that executes _A_func on invokation.
20 * @deprecated Use sigc::mem_fun() instead.
23 template <class T_return, class T_obj>
24 inline Slot1<T_return, T_obj&>
25 slot(T_return (T_obj::*_A_func)() )
26 { return ::sigc::mem_functor0<T_return, T_obj>(_A_func); }
28 /** Creates a functor of type Sigc::Slot2 that wraps a method.
30 * @param _A_func Pointer to method that should be wrapped.
31 * @return Functor that executes _A_func on invokation.
33 * @deprecated Use sigc::mem_fun() instead.
36 template <class T_return, class T_arg1, class T_obj>
37 inline Slot2<T_return, T_obj&, T_arg1>
38 slot(T_return (T_obj::*_A_func)(T_arg1) )
39 { return ::sigc::mem_functor1<T_return, T_obj, T_arg1>(_A_func); }
41 /** Creates a functor of type Sigc::Slot3 that wraps a method.
43 * @param _A_func Pointer to method that should be wrapped.
44 * @return Functor that executes _A_func on invokation.
46 * @deprecated Use sigc::mem_fun() instead.
49 template <class T_return, class T_arg1,class T_arg2, class T_obj>
50 inline Slot3<T_return, T_obj&, T_arg1,T_arg2>
51 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2) )
52 { return ::sigc::mem_functor2<T_return, T_obj, T_arg1,T_arg2>(_A_func); }
54 /** Creates a functor of type Sigc::Slot4 that wraps a method.
56 * @param _A_func Pointer to method that should be wrapped.
57 * @return Functor that executes _A_func on invokation.
59 * @deprecated Use sigc::mem_fun() instead.
62 template <class T_return, class T_arg1,class T_arg2,class T_arg3, class T_obj>
63 inline Slot4<T_return, T_obj&, T_arg1,T_arg2,T_arg3>
64 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3) )
65 { return ::sigc::mem_functor3<T_return, T_obj, T_arg1,T_arg2,T_arg3>(_A_func); }
67 /** Creates a functor of type Sigc::Slot5 that wraps a method.
69 * @param _A_func Pointer to method that should be wrapped.
70 * @return Functor that executes _A_func on invokation.
72 * @deprecated Use sigc::mem_fun() instead.
75 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4, class T_obj>
76 inline Slot5<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4>
77 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4) )
78 { return ::sigc::mem_functor4<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4>(_A_func); }
80 /** Creates a functor of type Sigc::Slot6 that wraps a method.
82 * @param _A_func Pointer to method that should be wrapped.
83 * @return Functor that executes _A_func on invokation.
85 * @deprecated Use sigc::mem_fun() instead.
88 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5, class T_obj>
89 inline Slot6<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>
90 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5) )
91 { return ::sigc::mem_functor5<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>(_A_func); }
93 /** Creates a functor of type Sigc::Slot7 that wraps a method.
95 * @param _A_func Pointer to method that should be wrapped.
96 * @return Functor that executes _A_func on invokation.
98 * @deprecated Use sigc::mem_fun() instead.
101 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5,class T_arg6, class T_obj>
102 inline Slot7<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>
103 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6) )
104 { return ::sigc::mem_functor6<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>(_A_func); }
107 /** Creates a functor of type Sigc::Slot1 that wraps a const method.
109 * @param _A_func Pointer to method that should be wrapped.
110 * @return Functor that executes _A_func on invokation.
112 * @deprecated Use sigc::mem_fun() instead.
115 template <class T_return, class T_obj>
116 inline Slot1<T_return, T_obj&>
117 slot(T_return (T_obj::*_A_func)() const)
118 { return ::sigc::const_mem_functor0<T_return, T_obj>(_A_func); }
120 /** Creates a functor of type Sigc::Slot2 that wraps a const method.
122 * @param _A_func Pointer to method that should be wrapped.
123 * @return Functor that executes _A_func on invokation.
125 * @deprecated Use sigc::mem_fun() instead.
128 template <class T_return, class T_arg1, class T_obj>
129 inline Slot2<T_return, T_obj&, T_arg1>
130 slot(T_return (T_obj::*_A_func)(T_arg1) const)
131 { return ::sigc::const_mem_functor1<T_return, T_obj, T_arg1>(_A_func); }
133 /** Creates a functor of type Sigc::Slot3 that wraps a const method.
135 * @param _A_func Pointer to method that should be wrapped.
136 * @return Functor that executes _A_func on invokation.
138 * @deprecated Use sigc::mem_fun() instead.
141 template <class T_return, class T_arg1,class T_arg2, class T_obj>
142 inline Slot3<T_return, T_obj&, T_arg1,T_arg2>
143 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2) const)
144 { return ::sigc::const_mem_functor2<T_return, T_obj, T_arg1,T_arg2>(_A_func); }
146 /** Creates a functor of type Sigc::Slot4 that wraps a const method.
148 * @param _A_func Pointer to method that should be wrapped.
149 * @return Functor that executes _A_func on invokation.
151 * @deprecated Use sigc::mem_fun() instead.
154 template <class T_return, class T_arg1,class T_arg2,class T_arg3, class T_obj>
155 inline Slot4<T_return, T_obj&, T_arg1,T_arg2,T_arg3>
156 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3) const)
157 { return ::sigc::const_mem_functor3<T_return, T_obj, T_arg1,T_arg2,T_arg3>(_A_func); }
159 /** Creates a functor of type Sigc::Slot5 that wraps a const method.
161 * @param _A_func Pointer to method that should be wrapped.
162 * @return Functor that executes _A_func on invokation.
164 * @deprecated Use sigc::mem_fun() instead.
167 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4, class T_obj>
168 inline Slot5<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4>
169 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4) const)
170 { return ::sigc::const_mem_functor4<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4>(_A_func); }
172 /** Creates a functor of type Sigc::Slot6 that wraps a const method.
174 * @param _A_func Pointer to method that should be wrapped.
175 * @return Functor that executes _A_func on invokation.
177 * @deprecated Use sigc::mem_fun() instead.
180 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5, class T_obj>
181 inline Slot6<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>
182 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5) const)
183 { return ::sigc::const_mem_functor5<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>(_A_func); }
185 /** Creates a functor of type Sigc::Slot7 that wraps a const method.
187 * @param _A_func Pointer to method that should be wrapped.
188 * @return Functor that executes _A_func on invokation.
190 * @deprecated Use sigc::mem_fun() instead.
193 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5,class T_arg6, class T_obj>
194 inline Slot7<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>
195 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6) const)
196 { return ::sigc::const_mem_functor6<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>(_A_func); }
199 /** Creates a functor of type Sigc::Slot1 that wraps a volatile method.
201 * @param _A_func Pointer to method that should be wrapped.
202 * @return Functor that executes _A_func on invokation.
204 * @deprecated Use sigc::mem_fun() instead.
207 template <class T_return, class T_obj>
208 inline Slot1<T_return, T_obj&>
209 slot(T_return (T_obj::*_A_func)() volatile)
210 { return ::sigc::volatile_mem_functor0<T_return, T_obj>(_A_func); }
212 /** Creates a functor of type Sigc::Slot2 that wraps a volatile method.
214 * @param _A_func Pointer to method that should be wrapped.
215 * @return Functor that executes _A_func on invokation.
217 * @deprecated Use sigc::mem_fun() instead.
220 template <class T_return, class T_arg1, class T_obj>
221 inline Slot2<T_return, T_obj&, T_arg1>
222 slot(T_return (T_obj::*_A_func)(T_arg1) volatile)
223 { return ::sigc::volatile_mem_functor1<T_return, T_obj, T_arg1>(_A_func); }
225 /** Creates a functor of type Sigc::Slot3 that wraps a volatile method.
227 * @param _A_func Pointer to method that should be wrapped.
228 * @return Functor that executes _A_func on invokation.
230 * @deprecated Use sigc::mem_fun() instead.
233 template <class T_return, class T_arg1,class T_arg2, class T_obj>
234 inline Slot3<T_return, T_obj&, T_arg1,T_arg2>
235 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2) volatile)
236 { return ::sigc::volatile_mem_functor2<T_return, T_obj, T_arg1,T_arg2>(_A_func); }
238 /** Creates a functor of type Sigc::Slot4 that wraps a volatile method.
240 * @param _A_func Pointer to method that should be wrapped.
241 * @return Functor that executes _A_func on invokation.
243 * @deprecated Use sigc::mem_fun() instead.
246 template <class T_return, class T_arg1,class T_arg2,class T_arg3, class T_obj>
247 inline Slot4<T_return, T_obj&, T_arg1,T_arg2,T_arg3>
248 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3) volatile)
249 { return ::sigc::volatile_mem_functor3<T_return, T_obj, T_arg1,T_arg2,T_arg3>(_A_func); }
251 /** Creates a functor of type Sigc::Slot5 that wraps a volatile method.
253 * @param _A_func Pointer to method that should be wrapped.
254 * @return Functor that executes _A_func on invokation.
256 * @deprecated Use sigc::mem_fun() instead.
259 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4, class T_obj>
260 inline Slot5<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4>
261 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4) volatile)
262 { return ::sigc::volatile_mem_functor4<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4>(_A_func); }
264 /** Creates a functor of type Sigc::Slot6 that wraps a volatile method.
266 * @param _A_func Pointer to method that should be wrapped.
267 * @return Functor that executes _A_func on invokation.
269 * @deprecated Use sigc::mem_fun() instead.
272 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5, class T_obj>
273 inline Slot6<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>
274 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5) volatile)
275 { return ::sigc::volatile_mem_functor5<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>(_A_func); }
277 /** Creates a functor of type Sigc::Slot7 that wraps a volatile method.
279 * @param _A_func Pointer to method that should be wrapped.
280 * @return Functor that executes _A_func on invokation.
282 * @deprecated Use sigc::mem_fun() instead.
285 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5,class T_arg6, class T_obj>
286 inline Slot7<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>
287 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6) volatile)
288 { return ::sigc::volatile_mem_functor6<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>(_A_func); }
291 /** Creates a functor of type Sigc::Slot1 that wraps a const volatile method.
293 * @param _A_func Pointer to method that should be wrapped.
294 * @return Functor that executes _A_func on invokation.
296 * @deprecated Use sigc::mem_fun() instead.
299 template <class T_return, class T_obj>
300 inline Slot1<T_return, T_obj&>
301 slot(T_return (T_obj::*_A_func)() const volatile)
302 { return ::sigc::const_volatile_mem_functor0<T_return, T_obj>(_A_func); }
304 /** Creates a functor of type Sigc::Slot2 that wraps a const volatile method.
306 * @param _A_func Pointer to method that should be wrapped.
307 * @return Functor that executes _A_func on invokation.
309 * @deprecated Use sigc::mem_fun() instead.
312 template <class T_return, class T_arg1, class T_obj>
313 inline Slot2<T_return, T_obj&, T_arg1>
314 slot(T_return (T_obj::*_A_func)(T_arg1) const volatile)
315 { return ::sigc::const_volatile_mem_functor1<T_return, T_obj, T_arg1>(_A_func); }
317 /** Creates a functor of type Sigc::Slot3 that wraps a const volatile method.
319 * @param _A_func Pointer to method that should be wrapped.
320 * @return Functor that executes _A_func on invokation.
322 * @deprecated Use sigc::mem_fun() instead.
325 template <class T_return, class T_arg1,class T_arg2, class T_obj>
326 inline Slot3<T_return, T_obj&, T_arg1,T_arg2>
327 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2) const volatile)
328 { return ::sigc::const_volatile_mem_functor2<T_return, T_obj, T_arg1,T_arg2>(_A_func); }
330 /** Creates a functor of type Sigc::Slot4 that wraps a const volatile method.
332 * @param _A_func Pointer to method that should be wrapped.
333 * @return Functor that executes _A_func on invokation.
335 * @deprecated Use sigc::mem_fun() instead.
338 template <class T_return, class T_arg1,class T_arg2,class T_arg3, class T_obj>
339 inline Slot4<T_return, T_obj&, T_arg1,T_arg2,T_arg3>
340 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3) const volatile)
341 { return ::sigc::const_volatile_mem_functor3<T_return, T_obj, T_arg1,T_arg2,T_arg3>(_A_func); }
343 /** Creates a functor of type Sigc::Slot5 that wraps a const volatile method.
345 * @param _A_func Pointer to method that should be wrapped.
346 * @return Functor that executes _A_func on invokation.
348 * @deprecated Use sigc::mem_fun() instead.
351 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4, class T_obj>
352 inline Slot5<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4>
353 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4) const volatile)
354 { return ::sigc::const_volatile_mem_functor4<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4>(_A_func); }
356 /** Creates a functor of type Sigc::Slot6 that wraps a const volatile method.
358 * @param _A_func Pointer to method that should be wrapped.
359 * @return Functor that executes _A_func on invokation.
361 * @deprecated Use sigc::mem_fun() instead.
364 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5, class T_obj>
365 inline Slot6<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>
366 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5) const volatile)
367 { return ::sigc::const_volatile_mem_functor5<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5>(_A_func); }
369 /** Creates a functor of type Sigc::Slot7 that wraps a const volatile method.
371 * @param _A_func Pointer to method that should be wrapped.
372 * @return Functor that executes _A_func on invokation.
374 * @deprecated Use sigc::mem_fun() instead.
377 template <class T_return, class T_arg1,class T_arg2,class T_arg3,class T_arg4,class T_arg5,class T_arg6, class T_obj>
378 inline Slot7<T_return, T_obj&, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>
379 slot(T_return (T_obj::*_A_func)(T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6) const volatile)
380 { return ::sigc::const_volatile_mem_functor6<T_return, T_obj, T_arg1,T_arg2,T_arg3,T_arg4,T_arg5,T_arg6>(_A_func); }
387 #endif /* _SIGC_MACROS_METHOD_SLOTHM4_ */