mbed os with nrf51 internal bandgap enabled to read battery level

Dependents:   BLE_file_test BLE_Blink ExternalEncoder

Committer:
elessair
Date:
Sun Oct 23 15:10:02 2016 +0000
Revision:
0:f269e3021894
Initial commit

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 /* events
elessair 0:f269e3021894 2 * Copyright (c) 2016 ARM Limited
elessair 0:f269e3021894 3 *
elessair 0:f269e3021894 4 * Licensed under the Apache License, Version 2.0 (the "License");
elessair 0:f269e3021894 5 * you may not use this file except in compliance with the License.
elessair 0:f269e3021894 6 * You may obtain a copy of the License at
elessair 0:f269e3021894 7 *
elessair 0:f269e3021894 8 * http://www.apache.org/licenses/LICENSE-2.0
elessair 0:f269e3021894 9 *
elessair 0:f269e3021894 10 * Unless required by applicable law or agreed to in writing, software
elessair 0:f269e3021894 11 * distributed under the License is distributed on an "AS IS" BASIS,
elessair 0:f269e3021894 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
elessair 0:f269e3021894 13 * See the License for the specific language governing permissions and
elessair 0:f269e3021894 14 * limitations under the License.
elessair 0:f269e3021894 15 */
elessair 0:f269e3021894 16
elessair 0:f269e3021894 17 #ifndef EVENT_QUEUE_H
elessair 0:f269e3021894 18 #define EVENT_QUEUE_H
elessair 0:f269e3021894 19
elessair 0:f269e3021894 20 #include "equeue/equeue.h"
elessair 0:f269e3021894 21 #include "platform/Callback.h"
elessair 0:f269e3021894 22 #include <cstddef>
elessair 0:f269e3021894 23 #include <new>
elessair 0:f269e3021894 24
elessair 0:f269e3021894 25 namespace events {
elessair 0:f269e3021894 26 /** \addtogroup events */
elessair 0:f269e3021894 27 /** @{*/
elessair 0:f269e3021894 28
elessair 0:f269e3021894 29 /** EVENTS_EVENT_SIZE
elessair 0:f269e3021894 30 * Minimum size of an event
elessair 0:f269e3021894 31 * This size fits a Callback<void()> at minimum
elessair 0:f269e3021894 32 */
elessair 0:f269e3021894 33 #define EVENTS_EVENT_SIZE \
elessair 0:f269e3021894 34 (EQUEUE_EVENT_SIZE - 2*sizeof(void*) + sizeof(mbed::Callback<void()>))
elessair 0:f269e3021894 35
elessair 0:f269e3021894 36 /** EVENTS_QUEUE_SIZE
elessair 0:f269e3021894 37 * Default size of buffer for events
elessair 0:f269e3021894 38 */
elessair 0:f269e3021894 39 #define EVENTS_QUEUE_SIZE (32*EVENTS_EVENT_SIZE)
elessair 0:f269e3021894 40
elessair 0:f269e3021894 41 // Predeclared classes
elessair 0:f269e3021894 42 template <typename F>
elessair 0:f269e3021894 43 class Event;
elessair 0:f269e3021894 44
elessair 0:f269e3021894 45
elessair 0:f269e3021894 46 /** EventQueue
elessair 0:f269e3021894 47 *
elessair 0:f269e3021894 48 * Flexible event queue for dispatching events
elessair 0:f269e3021894 49 */
elessair 0:f269e3021894 50 class EventQueue {
elessair 0:f269e3021894 51 public:
elessair 0:f269e3021894 52 /** Create an EventQueue
elessair 0:f269e3021894 53 *
elessair 0:f269e3021894 54 * Create an event queue. The event queue either allocates a buffer of
elessair 0:f269e3021894 55 * the specified size with malloc or uses the user provided buffer.
elessair 0:f269e3021894 56 *
elessair 0:f269e3021894 57 * @param size Size of buffer to use for events in bytes
elessair 0:f269e3021894 58 * (default to EVENTS_QUEUE_SIZE)
elessair 0:f269e3021894 59 * @param buffer Pointer to buffer to use for events
elessair 0:f269e3021894 60 * (default to NULL)
elessair 0:f269e3021894 61 */
elessair 0:f269e3021894 62 EventQueue(unsigned size=EVENTS_QUEUE_SIZE, unsigned char *buffer=NULL);
elessair 0:f269e3021894 63
elessair 0:f269e3021894 64 /** Destroy an EventQueue
elessair 0:f269e3021894 65 */
elessair 0:f269e3021894 66 ~EventQueue();
elessair 0:f269e3021894 67
elessair 0:f269e3021894 68 /** Dispatch events
elessair 0:f269e3021894 69 *
elessair 0:f269e3021894 70 * Executes events until the specified milliseconds have passed.
elessair 0:f269e3021894 71 * If ms is negative, the dispatch function will dispatch events
elessair 0:f269e3021894 72 * indefinitely or until break_dispatch is called on this queue.
elessair 0:f269e3021894 73 *
elessair 0:f269e3021894 74 * When called with a finite timeout, the dispatch function is guaranteed
elessair 0:f269e3021894 75 * to terminate. When called with a timeout of 0, the dispatch function
elessair 0:f269e3021894 76 * does not wait and is irq safe.
elessair 0:f269e3021894 77 *
elessair 0:f269e3021894 78 * @param ms Time to wait for events in milliseconds, a negative
elessair 0:f269e3021894 79 * value will dispatch events indefinitely
elessair 0:f269e3021894 80 * (default to -1)
elessair 0:f269e3021894 81 */
elessair 0:f269e3021894 82 void dispatch(int ms=-1);
elessair 0:f269e3021894 83
elessair 0:f269e3021894 84 /** Dispatch events without a timeout
elessair 0:f269e3021894 85 *
elessair 0:f269e3021894 86 * This is equivalent to EventQueue::dispatch with no arguments, but
elessair 0:f269e3021894 87 * avoids overload ambiguities when passed as a callback.
elessair 0:f269e3021894 88 *
elessair 0:f269e3021894 89 * @see EventQueue::dispatch
elessair 0:f269e3021894 90 */
elessair 0:f269e3021894 91 void dispatch_forever() { dispatch(); }
elessair 0:f269e3021894 92
elessair 0:f269e3021894 93 /** Break out of a running event loop
elessair 0:f269e3021894 94 *
elessair 0:f269e3021894 95 * Forces the specified event queue's dispatch loop to terminate. Pending
elessair 0:f269e3021894 96 * events may finish executing, but no new events will be executed.
elessair 0:f269e3021894 97 */
elessair 0:f269e3021894 98 void break_dispatch();
elessair 0:f269e3021894 99
elessair 0:f269e3021894 100 /** Millisecond counter
elessair 0:f269e3021894 101 *
elessair 0:f269e3021894 102 * Returns the underlying tick of the event queue represented as the
elessair 0:f269e3021894 103 * number of milliseconds that have passed since an arbitrary point in
elessair 0:f269e3021894 104 * time. Intentionally overflows to 0 after 2^32-1.
elessair 0:f269e3021894 105 *
elessair 0:f269e3021894 106 * @return The underlying tick of the event queue in milliseconds
elessair 0:f269e3021894 107 */
elessair 0:f269e3021894 108 unsigned tick();
elessair 0:f269e3021894 109
elessair 0:f269e3021894 110 /** Cancel an in-flight event
elessair 0:f269e3021894 111 *
elessair 0:f269e3021894 112 * Attempts to cancel an event referenced by the unique id returned from
elessair 0:f269e3021894 113 * one of the call functions. It is safe to call cancel after an event
elessair 0:f269e3021894 114 * has already been dispatched.
elessair 0:f269e3021894 115 *
elessair 0:f269e3021894 116 * The cancel function is irq safe.
elessair 0:f269e3021894 117 *
elessair 0:f269e3021894 118 * If called while the event queue's dispatch loop is active, the cancel
elessair 0:f269e3021894 119 * function does not garuntee that the event will not execute after it
elessair 0:f269e3021894 120 * returns, as the event may have already begun executing.
elessair 0:f269e3021894 121 *
elessair 0:f269e3021894 122 * @param id Unique id of the event
elessair 0:f269e3021894 123 */
elessair 0:f269e3021894 124 void cancel(int id);
elessair 0:f269e3021894 125
elessair 0:f269e3021894 126 /** Background an event queue onto a single-shot timer-interrupt
elessair 0:f269e3021894 127 *
elessair 0:f269e3021894 128 * When updated, the event queue will call the provided update function
elessair 0:f269e3021894 129 * with a timeout indicating when the queue should be dispatched. A
elessair 0:f269e3021894 130 * negative timeout will be passed to the update function when the
elessair 0:f269e3021894 131 * timer-interrupt is no longer needed.
elessair 0:f269e3021894 132 *
elessair 0:f269e3021894 133 * Passing a null function disables the existing update function.
elessair 0:f269e3021894 134 *
elessair 0:f269e3021894 135 * The background function allows an event queue to take advantage of
elessair 0:f269e3021894 136 * hardware timers or other event loops, allowing an event queue to be
elessair 0:f269e3021894 137 * ran in the background without consuming the foreground thread.
elessair 0:f269e3021894 138 *
elessair 0:f269e3021894 139 * @param update Function called to indicate when the queue should be
elessair 0:f269e3021894 140 * dispatched
elessair 0:f269e3021894 141 */
elessair 0:f269e3021894 142 void background(mbed::Callback<void(int)> update);
elessair 0:f269e3021894 143
elessair 0:f269e3021894 144 /** Chain an event queue onto another event queue
elessair 0:f269e3021894 145 *
elessair 0:f269e3021894 146 * After chaining a queue to a target, calling dispatch on the target
elessair 0:f269e3021894 147 * queue will also dispatch events from this queue. The queues use
elessair 0:f269e3021894 148 * their own buffers and events must be handled independently.
elessair 0:f269e3021894 149 *
elessair 0:f269e3021894 150 * A null queue as the target will unchain the existing queue.
elessair 0:f269e3021894 151 *
elessair 0:f269e3021894 152 * The chain function allows multiple event queues to be composed,
elessair 0:f269e3021894 153 * sharing the context of a dispatch loop while still being managed
elessair 0:f269e3021894 154 * independently
elessair 0:f269e3021894 155 *
elessair 0:f269e3021894 156 * @param target Queue that will dispatch this queue's events as a
elessair 0:f269e3021894 157 * part of its dispatch loop
elessair 0:f269e3021894 158 */
elessair 0:f269e3021894 159 void chain(EventQueue *target);
elessair 0:f269e3021894 160
elessair 0:f269e3021894 161 /** Calls an event on the queue
elessair 0:f269e3021894 162 *
elessair 0:f269e3021894 163 * The specified callback will be executed in the context of the event
elessair 0:f269e3021894 164 * queue's dispatch loop.
elessair 0:f269e3021894 165 *
elessair 0:f269e3021894 166 * The call function is irq safe and can act as a mechanism for moving
elessair 0:f269e3021894 167 * events out of irq contexts.
elessair 0:f269e3021894 168 *
elessair 0:f269e3021894 169 * @param f Function to execute in the context of the dispatch loop
elessair 0:f269e3021894 170 * @param a0..a4 Arguments to pass to the callback
elessair 0:f269e3021894 171 * @return A unique id that represents the posted event and can
elessair 0:f269e3021894 172 * be passed to cancel, or an id of 0 if there is not
elessair 0:f269e3021894 173 * enough memory to allocate the event.
elessair 0:f269e3021894 174 */
elessair 0:f269e3021894 175 template <typename F>
elessair 0:f269e3021894 176 int call(F f) {
elessair 0:f269e3021894 177 void *p = equeue_alloc(&_equeue, sizeof(F));
elessair 0:f269e3021894 178 if (!p) {
elessair 0:f269e3021894 179 return 0;
elessair 0:f269e3021894 180 }
elessair 0:f269e3021894 181
elessair 0:f269e3021894 182 F *e = new (p) F(f);
elessair 0:f269e3021894 183 equeue_event_dtor(e, &EventQueue::function_dtor<F>);
elessair 0:f269e3021894 184 return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
elessair 0:f269e3021894 185 }
elessair 0:f269e3021894 186
elessair 0:f269e3021894 187 /** Calls an event on the queue
elessair 0:f269e3021894 188 * @see EventQueue::call
elessair 0:f269e3021894 189 */
elessair 0:f269e3021894 190 template <typename F, typename A0>
elessair 0:f269e3021894 191 int call(F f, A0 a0) {
elessair 0:f269e3021894 192 return call(context10<F, A0>(f, a0));
elessair 0:f269e3021894 193 }
elessair 0:f269e3021894 194
elessair 0:f269e3021894 195 /** Calls an event on the queue
elessair 0:f269e3021894 196 * @see EventQueue::call
elessair 0:f269e3021894 197 */
elessair 0:f269e3021894 198 template <typename F, typename A0, typename A1>
elessair 0:f269e3021894 199 int call(F f, A0 a0, A1 a1) {
elessair 0:f269e3021894 200 return call(context20<F, A0, A1>(f, a0, a1));
elessair 0:f269e3021894 201 }
elessair 0:f269e3021894 202
elessair 0:f269e3021894 203 /** Calls an event on the queue
elessair 0:f269e3021894 204 * @see EventQueue::call
elessair 0:f269e3021894 205 */
elessair 0:f269e3021894 206 template <typename F, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 207 int call(F f, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 208 return call(context30<F, A0, A1, A2>(f, a0, a1, a2));
elessair 0:f269e3021894 209 }
elessair 0:f269e3021894 210
elessair 0:f269e3021894 211 /** Calls an event on the queue
elessair 0:f269e3021894 212 * @see EventQueue::call
elessair 0:f269e3021894 213 */
elessair 0:f269e3021894 214 template <typename F, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 215 int call(F f, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 216 return call(context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
elessair 0:f269e3021894 217 }
elessair 0:f269e3021894 218
elessair 0:f269e3021894 219 /** Calls an event on the queue
elessair 0:f269e3021894 220 * @see EventQueue::call
elessair 0:f269e3021894 221 */
elessair 0:f269e3021894 222 template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 223 int call(F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 224 return call(context50<F, A0, A1, A2, A3, A4>(f, a0, a1, a2, a3, a4));
elessair 0:f269e3021894 225 }
elessair 0:f269e3021894 226
elessair 0:f269e3021894 227 /** Calls an event on the queue
elessair 0:f269e3021894 228 * @see EventQueue::call
elessair 0:f269e3021894 229 */
elessair 0:f269e3021894 230 template <typename T, typename R>
elessair 0:f269e3021894 231 int call(T *obj, R (T::*method)()) {
elessair 0:f269e3021894 232 return call(mbed::callback(obj, method));
elessair 0:f269e3021894 233 }
elessair 0:f269e3021894 234
elessair 0:f269e3021894 235 /** Calls an event on the queue
elessair 0:f269e3021894 236 * @see EventQueue::call
elessair 0:f269e3021894 237 */
elessair 0:f269e3021894 238 template <typename T, typename R>
elessair 0:f269e3021894 239 int call(const T *obj, R (T::*method)() const) {
elessair 0:f269e3021894 240 return call(mbed::callback(obj, method));
elessair 0:f269e3021894 241 }
elessair 0:f269e3021894 242
elessair 0:f269e3021894 243 /** Calls an event on the queue
elessair 0:f269e3021894 244 * @see EventQueue::call
elessair 0:f269e3021894 245 */
elessair 0:f269e3021894 246 template <typename T, typename R>
elessair 0:f269e3021894 247 int call(volatile T *obj, R (T::*method)() volatile) {
elessair 0:f269e3021894 248 return call(mbed::callback(obj, method));
elessair 0:f269e3021894 249 }
elessair 0:f269e3021894 250
elessair 0:f269e3021894 251 /** Calls an event on the queue
elessair 0:f269e3021894 252 * @see EventQueue::call
elessair 0:f269e3021894 253 */
elessair 0:f269e3021894 254 template <typename T, typename R>
elessair 0:f269e3021894 255 int call(const volatile T *obj, R (T::*method)() const volatile) {
elessair 0:f269e3021894 256 return call(mbed::callback(obj, method));
elessair 0:f269e3021894 257 }
elessair 0:f269e3021894 258
elessair 0:f269e3021894 259 /** Calls an event on the queue
elessair 0:f269e3021894 260 * @see EventQueue::call
elessair 0:f269e3021894 261 */
elessair 0:f269e3021894 262 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 263 int call(T *obj, R (T::*method)(A0), A0 a0) {
elessair 0:f269e3021894 264 return call(mbed::callback(obj, method), a0);
elessair 0:f269e3021894 265 }
elessair 0:f269e3021894 266
elessair 0:f269e3021894 267 /** Calls an event on the queue
elessair 0:f269e3021894 268 * @see EventQueue::call
elessair 0:f269e3021894 269 */
elessair 0:f269e3021894 270 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 271 int call(const T *obj, R (T::*method)(A0) const, A0 a0) {
elessair 0:f269e3021894 272 return call(mbed::callback(obj, method), a0);
elessair 0:f269e3021894 273 }
elessair 0:f269e3021894 274
elessair 0:f269e3021894 275 /** Calls an event on the queue
elessair 0:f269e3021894 276 * @see EventQueue::call
elessair 0:f269e3021894 277 */
elessair 0:f269e3021894 278 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 279 int call(volatile T *obj, R (T::*method)(A0) volatile, A0 a0) {
elessair 0:f269e3021894 280 return call(mbed::callback(obj, method), a0);
elessair 0:f269e3021894 281 }
elessair 0:f269e3021894 282
elessair 0:f269e3021894 283 /** Calls an event on the queue
elessair 0:f269e3021894 284 * @see EventQueue::call
elessair 0:f269e3021894 285 */
elessair 0:f269e3021894 286 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 287 int call(const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) {
elessair 0:f269e3021894 288 return call(mbed::callback(obj, method), a0);
elessair 0:f269e3021894 289 }
elessair 0:f269e3021894 290
elessair 0:f269e3021894 291 /** Calls an event on the queue
elessair 0:f269e3021894 292 * @see EventQueue::call
elessair 0:f269e3021894 293 */
elessair 0:f269e3021894 294 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 295 int call(T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) {
elessair 0:f269e3021894 296 return call(mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 297 }
elessair 0:f269e3021894 298
elessair 0:f269e3021894 299 /** Calls an event on the queue
elessair 0:f269e3021894 300 * @see EventQueue::call
elessair 0:f269e3021894 301 */
elessair 0:f269e3021894 302 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 303 int call(const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) {
elessair 0:f269e3021894 304 return call(mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 305 }
elessair 0:f269e3021894 306
elessair 0:f269e3021894 307 /** Calls an event on the queue
elessair 0:f269e3021894 308 * @see EventQueue::call
elessair 0:f269e3021894 309 */
elessair 0:f269e3021894 310 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 311 int call(volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 312 return call(mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 313 }
elessair 0:f269e3021894 314
elessair 0:f269e3021894 315 /** Calls an event on the queue
elessair 0:f269e3021894 316 * @see EventQueue::call
elessair 0:f269e3021894 317 */
elessair 0:f269e3021894 318 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 319 int call(const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 320 return call(mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 321 }
elessair 0:f269e3021894 322
elessair 0:f269e3021894 323 /** Calls an event on the queue
elessair 0:f269e3021894 324 * @see EventQueue::call
elessair 0:f269e3021894 325 */
elessair 0:f269e3021894 326 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 327 int call(T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 328 return call(mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 329 }
elessair 0:f269e3021894 330
elessair 0:f269e3021894 331 /** Calls an event on the queue
elessair 0:f269e3021894 332 * @see EventQueue::call
elessair 0:f269e3021894 333 */
elessair 0:f269e3021894 334 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 335 int call(const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 336 return call(mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 337 }
elessair 0:f269e3021894 338
elessair 0:f269e3021894 339 /** Calls an event on the queue
elessair 0:f269e3021894 340 * @see EventQueue::call
elessair 0:f269e3021894 341 */
elessair 0:f269e3021894 342 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 343 int call(volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 344 return call(mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 345 }
elessair 0:f269e3021894 346
elessair 0:f269e3021894 347 /** Calls an event on the queue
elessair 0:f269e3021894 348 * @see EventQueue::call
elessair 0:f269e3021894 349 */
elessair 0:f269e3021894 350 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 351 int call(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 352 return call(mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 353 }
elessair 0:f269e3021894 354
elessair 0:f269e3021894 355 /** Calls an event on the queue
elessair 0:f269e3021894 356 * @see EventQueue::call
elessair 0:f269e3021894 357 */
elessair 0:f269e3021894 358 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 359 int call(T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 360 return call(mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 361 }
elessair 0:f269e3021894 362
elessair 0:f269e3021894 363 /** Calls an event on the queue
elessair 0:f269e3021894 364 * @see EventQueue::call
elessair 0:f269e3021894 365 */
elessair 0:f269e3021894 366 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 367 int call(const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 368 return call(mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 369 }
elessair 0:f269e3021894 370
elessair 0:f269e3021894 371 /** Calls an event on the queue
elessair 0:f269e3021894 372 * @see EventQueue::call
elessair 0:f269e3021894 373 */
elessair 0:f269e3021894 374 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 375 int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 376 return call(mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 377 }
elessair 0:f269e3021894 378
elessair 0:f269e3021894 379 /** Calls an event on the queue
elessair 0:f269e3021894 380 * @see EventQueue::call
elessair 0:f269e3021894 381 */
elessair 0:f269e3021894 382 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 383 int call(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 384 return call(mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 385 }
elessair 0:f269e3021894 386
elessair 0:f269e3021894 387 /** Calls an event on the queue
elessair 0:f269e3021894 388 * @see EventQueue::call
elessair 0:f269e3021894 389 */
elessair 0:f269e3021894 390 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 391 int call(T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 392 return call(mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 393 }
elessair 0:f269e3021894 394
elessair 0:f269e3021894 395 /** Calls an event on the queue
elessair 0:f269e3021894 396 * @see EventQueue::call
elessair 0:f269e3021894 397 */
elessair 0:f269e3021894 398 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 399 int call(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 400 return call(mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 401 }
elessair 0:f269e3021894 402
elessair 0:f269e3021894 403 /** Calls an event on the queue
elessair 0:f269e3021894 404 * @see EventQueue::call
elessair 0:f269e3021894 405 */
elessair 0:f269e3021894 406 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 407 int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 408 return call(mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 409 }
elessair 0:f269e3021894 410
elessair 0:f269e3021894 411 /** Calls an event on the queue
elessair 0:f269e3021894 412 * @see EventQueue::call
elessair 0:f269e3021894 413 */
elessair 0:f269e3021894 414 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 415 int call(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 416 return call(mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 417 }
elessair 0:f269e3021894 418
elessair 0:f269e3021894 419 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 420 *
elessair 0:f269e3021894 421 * The specified callback will be executed in the context of the event
elessair 0:f269e3021894 422 * queue's dispatch loop.
elessair 0:f269e3021894 423 *
elessair 0:f269e3021894 424 * The call_in function is irq safe and can act as a mechanism for moving
elessair 0:f269e3021894 425 * events out of irq contexts.
elessair 0:f269e3021894 426 *
elessair 0:f269e3021894 427 * @param f Function to execute in the context of the dispatch loop
elessair 0:f269e3021894 428 * @param a0..a4 Arguments to pass to the callback
elessair 0:f269e3021894 429 * @param ms Time to delay in milliseconds
elessair 0:f269e3021894 430 * @return A unique id that represents the posted event and can
elessair 0:f269e3021894 431 * be passed to cancel, or an id of 0 if there is not
elessair 0:f269e3021894 432 * enough memory to allocate the event.
elessair 0:f269e3021894 433 */
elessair 0:f269e3021894 434 template <typename F>
elessair 0:f269e3021894 435 int call_in(int ms, F f) {
elessair 0:f269e3021894 436 void *p = equeue_alloc(&_equeue, sizeof(F));
elessair 0:f269e3021894 437 if (!p) {
elessair 0:f269e3021894 438 return 0;
elessair 0:f269e3021894 439 }
elessair 0:f269e3021894 440
elessair 0:f269e3021894 441 F *e = new (p) F(f);
elessair 0:f269e3021894 442 equeue_event_delay(e, ms);
elessair 0:f269e3021894 443 equeue_event_dtor(e, &EventQueue::function_dtor<F>);
elessair 0:f269e3021894 444 return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
elessair 0:f269e3021894 445 }
elessair 0:f269e3021894 446
elessair 0:f269e3021894 447 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 448 * @see EventQueue::call_in
elessair 0:f269e3021894 449 */
elessair 0:f269e3021894 450 template <typename F, typename A0>
elessair 0:f269e3021894 451 int call_in(int ms, F f, A0 a0) {
elessair 0:f269e3021894 452 return call_in(ms, context10<F, A0>(f, a0));
elessair 0:f269e3021894 453 }
elessair 0:f269e3021894 454
elessair 0:f269e3021894 455 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 456 * @see EventQueue::call_in
elessair 0:f269e3021894 457 */
elessair 0:f269e3021894 458 template <typename F, typename A0, typename A1>
elessair 0:f269e3021894 459 int call_in(int ms, F f, A0 a0, A1 a1) {
elessair 0:f269e3021894 460 return call_in(ms, context20<F, A0, A1>(f, a0, a1));
elessair 0:f269e3021894 461 }
elessair 0:f269e3021894 462
elessair 0:f269e3021894 463 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 464 * @see EventQueue::call_in
elessair 0:f269e3021894 465 */
elessair 0:f269e3021894 466 template <typename F, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 467 int call_in(int ms, F f, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 468 return call_in(ms, context30<F, A0, A1, A2>(f, a0, a1, a2));
elessair 0:f269e3021894 469 }
elessair 0:f269e3021894 470
elessair 0:f269e3021894 471 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 472 * @see EventQueue::call_in
elessair 0:f269e3021894 473 */
elessair 0:f269e3021894 474 template <typename F, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 475 int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 476 return call_in(ms, context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
elessair 0:f269e3021894 477 }
elessair 0:f269e3021894 478
elessair 0:f269e3021894 479 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 480 * @see EventQueue::call_in
elessair 0:f269e3021894 481 */
elessair 0:f269e3021894 482 template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 483 int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 484 return call_in(ms, context50<F, A0, A1, A2, A3, A4>(f, a0, a1, a2, a3, a4));
elessair 0:f269e3021894 485 }
elessair 0:f269e3021894 486
elessair 0:f269e3021894 487 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 488 * @see EventQueue::call_in
elessair 0:f269e3021894 489 */
elessair 0:f269e3021894 490 template <typename T, typename R>
elessair 0:f269e3021894 491 int call_in(int ms, T *obj, R (T::*method)()) {
elessair 0:f269e3021894 492 return call_in(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 493 }
elessair 0:f269e3021894 494
elessair 0:f269e3021894 495 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 496 * @see EventQueue::call_in
elessair 0:f269e3021894 497 */
elessair 0:f269e3021894 498 template <typename T, typename R>
elessair 0:f269e3021894 499 int call_in(int ms, const T *obj, R (T::*method)() const) {
elessair 0:f269e3021894 500 return call_in(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 501 }
elessair 0:f269e3021894 502
elessair 0:f269e3021894 503 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 504 * @see EventQueue::call_in
elessair 0:f269e3021894 505 */
elessair 0:f269e3021894 506 template <typename T, typename R>
elessair 0:f269e3021894 507 int call_in(int ms, volatile T *obj, R (T::*method)() volatile) {
elessair 0:f269e3021894 508 return call_in(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 509 }
elessair 0:f269e3021894 510
elessair 0:f269e3021894 511 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 512 * @see EventQueue::call_in
elessair 0:f269e3021894 513 */
elessair 0:f269e3021894 514 template <typename T, typename R>
elessair 0:f269e3021894 515 int call_in(int ms, const volatile T *obj, R (T::*method)() const volatile) {
elessair 0:f269e3021894 516 return call_in(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 517 }
elessair 0:f269e3021894 518
elessair 0:f269e3021894 519 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 520 * @see EventQueue::call_in
elessair 0:f269e3021894 521 */
elessair 0:f269e3021894 522 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 523 int call_in(int ms, T *obj, R (T::*method)(A0), A0 a0) {
elessair 0:f269e3021894 524 return call_in(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 525 }
elessair 0:f269e3021894 526
elessair 0:f269e3021894 527 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 528 * @see EventQueue::call_in
elessair 0:f269e3021894 529 */
elessair 0:f269e3021894 530 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 531 int call_in(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) {
elessair 0:f269e3021894 532 return call_in(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 533 }
elessair 0:f269e3021894 534
elessair 0:f269e3021894 535 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 536 * @see EventQueue::call_in
elessair 0:f269e3021894 537 */
elessair 0:f269e3021894 538 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 539 int call_in(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) {
elessair 0:f269e3021894 540 return call_in(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 541 }
elessair 0:f269e3021894 542
elessair 0:f269e3021894 543 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 544 * @see EventQueue::call_in
elessair 0:f269e3021894 545 */
elessair 0:f269e3021894 546 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 547 int call_in(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) {
elessair 0:f269e3021894 548 return call_in(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 549 }
elessair 0:f269e3021894 550
elessair 0:f269e3021894 551 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 552 * @see EventQueue::call_in
elessair 0:f269e3021894 553 */
elessair 0:f269e3021894 554 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 555 int call_in(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) {
elessair 0:f269e3021894 556 return call_in(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 557 }
elessair 0:f269e3021894 558
elessair 0:f269e3021894 559 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 560 * @see EventQueue::call_in
elessair 0:f269e3021894 561 */
elessair 0:f269e3021894 562 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 563 int call_in(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) {
elessair 0:f269e3021894 564 return call_in(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 565 }
elessair 0:f269e3021894 566
elessair 0:f269e3021894 567 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 568 * @see EventQueue::call_in
elessair 0:f269e3021894 569 */
elessair 0:f269e3021894 570 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 571 int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 572 return call_in(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 573 }
elessair 0:f269e3021894 574
elessair 0:f269e3021894 575 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 576 * @see EventQueue::call_in
elessair 0:f269e3021894 577 */
elessair 0:f269e3021894 578 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 579 int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 580 return call_in(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 581 }
elessair 0:f269e3021894 582
elessair 0:f269e3021894 583 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 584 * @see EventQueue::call_in
elessair 0:f269e3021894 585 */
elessair 0:f269e3021894 586 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 587 int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 588 return call_in(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 589 }
elessair 0:f269e3021894 590
elessair 0:f269e3021894 591 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 592 * @see EventQueue::call_in
elessair 0:f269e3021894 593 */
elessair 0:f269e3021894 594 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 595 int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 596 return call_in(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 597 }
elessair 0:f269e3021894 598
elessair 0:f269e3021894 599 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 600 * @see EventQueue::call_in
elessair 0:f269e3021894 601 */
elessair 0:f269e3021894 602 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 603 int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 604 return call_in(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 605 }
elessair 0:f269e3021894 606
elessair 0:f269e3021894 607 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 608 * @see EventQueue::call_in
elessair 0:f269e3021894 609 */
elessair 0:f269e3021894 610 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 611 int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 612 return call_in(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 613 }
elessair 0:f269e3021894 614
elessair 0:f269e3021894 615 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 616 * @see EventQueue::call_in
elessair 0:f269e3021894 617 */
elessair 0:f269e3021894 618 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 619 int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 620 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 621 }
elessair 0:f269e3021894 622
elessair 0:f269e3021894 623 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 624 * @see EventQueue::call_in
elessair 0:f269e3021894 625 */
elessair 0:f269e3021894 626 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 627 int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 628 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 629 }
elessair 0:f269e3021894 630
elessair 0:f269e3021894 631 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 632 * @see EventQueue::call_in
elessair 0:f269e3021894 633 */
elessair 0:f269e3021894 634 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 635 int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 636 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 637 }
elessair 0:f269e3021894 638
elessair 0:f269e3021894 639 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 640 * @see EventQueue::call_in
elessair 0:f269e3021894 641 */
elessair 0:f269e3021894 642 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 643 int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 644 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 645 }
elessair 0:f269e3021894 646
elessair 0:f269e3021894 647 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 648 * @see EventQueue::call_in
elessair 0:f269e3021894 649 */
elessair 0:f269e3021894 650 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 651 int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 652 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 653 }
elessair 0:f269e3021894 654
elessair 0:f269e3021894 655 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 656 * @see EventQueue::call_in
elessair 0:f269e3021894 657 */
elessair 0:f269e3021894 658 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 659 int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 660 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 661 }
elessair 0:f269e3021894 662
elessair 0:f269e3021894 663 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 664 * @see EventQueue::call_in
elessair 0:f269e3021894 665 */
elessair 0:f269e3021894 666 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 667 int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 668 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 669 }
elessair 0:f269e3021894 670
elessair 0:f269e3021894 671 /** Calls an event on the queue after a specified delay
elessair 0:f269e3021894 672 * @see EventQueue::call_in
elessair 0:f269e3021894 673 */
elessair 0:f269e3021894 674 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 675 int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 676 return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 677 }
elessair 0:f269e3021894 678
elessair 0:f269e3021894 679 /** Calls an event on the queue periodically
elessair 0:f269e3021894 680 *
elessair 0:f269e3021894 681 * The specified callback will be executed in the context of the event
elessair 0:f269e3021894 682 * queue's dispatch loop.
elessair 0:f269e3021894 683 *
elessair 0:f269e3021894 684 * The call_every function is irq safe and can act as a mechanism for
elessair 0:f269e3021894 685 * moving events out of irq contexts.
elessair 0:f269e3021894 686 *
elessair 0:f269e3021894 687 * @param f Function to execute in the context of the dispatch loop
elessair 0:f269e3021894 688 * @param a0..a4 Arguments to pass to the callback
elessair 0:f269e3021894 689 * @param ms Period of the event in milliseconds
elessair 0:f269e3021894 690 * @return A unique id that represents the posted event and can
elessair 0:f269e3021894 691 * be passed to cancel, or an id of 0 if there is not
elessair 0:f269e3021894 692 * enough memory to allocate the event.
elessair 0:f269e3021894 693 */
elessair 0:f269e3021894 694 template <typename F>
elessair 0:f269e3021894 695 int call_every(int ms, F f) {
elessair 0:f269e3021894 696 void *p = equeue_alloc(&_equeue, sizeof(F));
elessair 0:f269e3021894 697 if (!p) {
elessair 0:f269e3021894 698 return 0;
elessair 0:f269e3021894 699 }
elessair 0:f269e3021894 700
elessair 0:f269e3021894 701 F *e = new (p) F(f);
elessair 0:f269e3021894 702 equeue_event_delay(e, ms);
elessair 0:f269e3021894 703 equeue_event_period(e, ms);
elessair 0:f269e3021894 704 equeue_event_dtor(e, &EventQueue::function_dtor<F>);
elessair 0:f269e3021894 705 return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
elessair 0:f269e3021894 706 }
elessair 0:f269e3021894 707
elessair 0:f269e3021894 708 /** Calls an event on the queue periodically
elessair 0:f269e3021894 709 * @see EventQueue::call_every
elessair 0:f269e3021894 710 */
elessair 0:f269e3021894 711 template <typename F, typename A0>
elessair 0:f269e3021894 712 int call_every(int ms, F f, A0 a0) {
elessair 0:f269e3021894 713 return call_every(ms, context10<F, A0>(f, a0));
elessair 0:f269e3021894 714 }
elessair 0:f269e3021894 715
elessair 0:f269e3021894 716 /** Calls an event on the queue periodically
elessair 0:f269e3021894 717 * @see EventQueue::call_every
elessair 0:f269e3021894 718 */
elessair 0:f269e3021894 719 template <typename F, typename A0, typename A1>
elessair 0:f269e3021894 720 int call_every(int ms, F f, A0 a0, A1 a1) {
elessair 0:f269e3021894 721 return call_every(ms, context20<F, A0, A1>(f, a0, a1));
elessair 0:f269e3021894 722 }
elessair 0:f269e3021894 723
elessair 0:f269e3021894 724 /** Calls an event on the queue periodically
elessair 0:f269e3021894 725 * @see EventQueue::call_every
elessair 0:f269e3021894 726 */
elessair 0:f269e3021894 727 template <typename F, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 728 int call_every(int ms, F f, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 729 return call_every(ms, context30<F, A0, A1, A2>(f, a0, a1, a2));
elessair 0:f269e3021894 730 }
elessair 0:f269e3021894 731
elessair 0:f269e3021894 732 /** Calls an event on the queue periodically
elessair 0:f269e3021894 733 * @see EventQueue::call_every
elessair 0:f269e3021894 734 */
elessair 0:f269e3021894 735 template <typename F, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 736 int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 737 return call_every(ms, context40<F, A0, A1, A2, A3>(f, a0, a1, a2, a3));
elessair 0:f269e3021894 738 }
elessair 0:f269e3021894 739
elessair 0:f269e3021894 740 /** Calls an event on the queue periodically
elessair 0:f269e3021894 741 * @see EventQueue::call_every
elessair 0:f269e3021894 742 */
elessair 0:f269e3021894 743 template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 744 int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 745 return call_every(ms, context50<F, A0, A1, A2, A3, A4>(f, a0, a1, a2, a3, a4));
elessair 0:f269e3021894 746 }
elessair 0:f269e3021894 747
elessair 0:f269e3021894 748 /** Calls an event on the queue periodically
elessair 0:f269e3021894 749 * @see EventQueue::call_every
elessair 0:f269e3021894 750 */
elessair 0:f269e3021894 751 template <typename T, typename R>
elessair 0:f269e3021894 752 int call_every(int ms, T *obj, R (T::*method)()) {
elessair 0:f269e3021894 753 return call_every(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 754 }
elessair 0:f269e3021894 755
elessair 0:f269e3021894 756 /** Calls an event on the queue periodically
elessair 0:f269e3021894 757 * @see EventQueue::call_every
elessair 0:f269e3021894 758 */
elessair 0:f269e3021894 759 template <typename T, typename R>
elessair 0:f269e3021894 760 int call_every(int ms, const T *obj, R (T::*method)() const) {
elessair 0:f269e3021894 761 return call_every(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 762 }
elessair 0:f269e3021894 763
elessair 0:f269e3021894 764 /** Calls an event on the queue periodically
elessair 0:f269e3021894 765 * @see EventQueue::call_every
elessair 0:f269e3021894 766 */
elessair 0:f269e3021894 767 template <typename T, typename R>
elessair 0:f269e3021894 768 int call_every(int ms, volatile T *obj, R (T::*method)() volatile) {
elessair 0:f269e3021894 769 return call_every(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 770 }
elessair 0:f269e3021894 771
elessair 0:f269e3021894 772 /** Calls an event on the queue periodically
elessair 0:f269e3021894 773 * @see EventQueue::call_every
elessair 0:f269e3021894 774 */
elessair 0:f269e3021894 775 template <typename T, typename R>
elessair 0:f269e3021894 776 int call_every(int ms, const volatile T *obj, R (T::*method)() const volatile) {
elessair 0:f269e3021894 777 return call_every(ms, mbed::callback(obj, method));
elessair 0:f269e3021894 778 }
elessair 0:f269e3021894 779
elessair 0:f269e3021894 780 /** Calls an event on the queue periodically
elessair 0:f269e3021894 781 * @see EventQueue::call_every
elessair 0:f269e3021894 782 */
elessair 0:f269e3021894 783 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 784 int call_every(int ms, T *obj, R (T::*method)(A0), A0 a0) {
elessair 0:f269e3021894 785 return call_every(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 786 }
elessair 0:f269e3021894 787
elessair 0:f269e3021894 788 /** Calls an event on the queue periodically
elessair 0:f269e3021894 789 * @see EventQueue::call_every
elessair 0:f269e3021894 790 */
elessair 0:f269e3021894 791 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 792 int call_every(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) {
elessair 0:f269e3021894 793 return call_every(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 794 }
elessair 0:f269e3021894 795
elessair 0:f269e3021894 796 /** Calls an event on the queue periodically
elessair 0:f269e3021894 797 * @see EventQueue::call_every
elessair 0:f269e3021894 798 */
elessair 0:f269e3021894 799 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 800 int call_every(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) {
elessair 0:f269e3021894 801 return call_every(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 802 }
elessair 0:f269e3021894 803
elessair 0:f269e3021894 804 /** Calls an event on the queue periodically
elessair 0:f269e3021894 805 * @see EventQueue::call_every
elessair 0:f269e3021894 806 */
elessair 0:f269e3021894 807 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 808 int call_every(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) {
elessair 0:f269e3021894 809 return call_every(ms, mbed::callback(obj, method), a0);
elessair 0:f269e3021894 810 }
elessair 0:f269e3021894 811
elessair 0:f269e3021894 812 /** Calls an event on the queue periodically
elessair 0:f269e3021894 813 * @see EventQueue::call_every
elessair 0:f269e3021894 814 */
elessair 0:f269e3021894 815 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 816 int call_every(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) {
elessair 0:f269e3021894 817 return call_every(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 818 }
elessair 0:f269e3021894 819
elessair 0:f269e3021894 820 /** Calls an event on the queue periodically
elessair 0:f269e3021894 821 * @see EventQueue::call_every
elessair 0:f269e3021894 822 */
elessair 0:f269e3021894 823 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 824 int call_every(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) {
elessair 0:f269e3021894 825 return call_every(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 826 }
elessair 0:f269e3021894 827
elessair 0:f269e3021894 828 /** Calls an event on the queue periodically
elessair 0:f269e3021894 829 * @see EventQueue::call_every
elessair 0:f269e3021894 830 */
elessair 0:f269e3021894 831 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 832 int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 833 return call_every(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 834 }
elessair 0:f269e3021894 835
elessair 0:f269e3021894 836 /** Calls an event on the queue periodically
elessair 0:f269e3021894 837 * @see EventQueue::call_every
elessair 0:f269e3021894 838 */
elessair 0:f269e3021894 839 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 840 int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) {
elessair 0:f269e3021894 841 return call_every(ms, mbed::callback(obj, method), a0, a1);
elessair 0:f269e3021894 842 }
elessair 0:f269e3021894 843
elessair 0:f269e3021894 844 /** Calls an event on the queue periodically
elessair 0:f269e3021894 845 * @see EventQueue::call_every
elessair 0:f269e3021894 846 */
elessair 0:f269e3021894 847 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 848 int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 849 return call_every(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 850 }
elessair 0:f269e3021894 851
elessair 0:f269e3021894 852 /** Calls an event on the queue periodically
elessair 0:f269e3021894 853 * @see EventQueue::call_every
elessair 0:f269e3021894 854 */
elessair 0:f269e3021894 855 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 856 int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 857 return call_every(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 858 }
elessair 0:f269e3021894 859
elessair 0:f269e3021894 860 /** Calls an event on the queue periodically
elessair 0:f269e3021894 861 * @see EventQueue::call_every
elessair 0:f269e3021894 862 */
elessair 0:f269e3021894 863 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 864 int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 865 return call_every(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 866 }
elessair 0:f269e3021894 867
elessair 0:f269e3021894 868 /** Calls an event on the queue periodically
elessair 0:f269e3021894 869 * @see EventQueue::call_every
elessair 0:f269e3021894 870 */
elessair 0:f269e3021894 871 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 872 int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 873 return call_every(ms, mbed::callback(obj, method), a0, a1, a2);
elessair 0:f269e3021894 874 }
elessair 0:f269e3021894 875
elessair 0:f269e3021894 876 /** Calls an event on the queue periodically
elessair 0:f269e3021894 877 * @see EventQueue::call_every
elessair 0:f269e3021894 878 */
elessair 0:f269e3021894 879 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 880 int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 881 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 882 }
elessair 0:f269e3021894 883
elessair 0:f269e3021894 884 /** Calls an event on the queue periodically
elessair 0:f269e3021894 885 * @see EventQueue::call_every
elessair 0:f269e3021894 886 */
elessair 0:f269e3021894 887 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 888 int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 889 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 890 }
elessair 0:f269e3021894 891
elessair 0:f269e3021894 892 /** Calls an event on the queue periodically
elessair 0:f269e3021894 893 * @see EventQueue::call_every
elessair 0:f269e3021894 894 */
elessair 0:f269e3021894 895 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 896 int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 897 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 898 }
elessair 0:f269e3021894 899
elessair 0:f269e3021894 900 /** Calls an event on the queue periodically
elessair 0:f269e3021894 901 * @see EventQueue::call_every
elessair 0:f269e3021894 902 */
elessair 0:f269e3021894 903 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 904 int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 905 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3);
elessair 0:f269e3021894 906 }
elessair 0:f269e3021894 907
elessair 0:f269e3021894 908 /** Calls an event on the queue periodically
elessair 0:f269e3021894 909 * @see EventQueue::call_every
elessair 0:f269e3021894 910 */
elessair 0:f269e3021894 911 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 912 int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 913 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 914 }
elessair 0:f269e3021894 915
elessair 0:f269e3021894 916 /** Calls an event on the queue periodically
elessair 0:f269e3021894 917 * @see EventQueue::call_every
elessair 0:f269e3021894 918 */
elessair 0:f269e3021894 919 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 920 int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 921 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 922 }
elessair 0:f269e3021894 923
elessair 0:f269e3021894 924 /** Calls an event on the queue periodically
elessair 0:f269e3021894 925 * @see EventQueue::call_every
elessair 0:f269e3021894 926 */
elessair 0:f269e3021894 927 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 928 int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 929 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 930 }
elessair 0:f269e3021894 931
elessair 0:f269e3021894 932 /** Calls an event on the queue periodically
elessair 0:f269e3021894 933 * @see EventQueue::call_every
elessair 0:f269e3021894 934 */
elessair 0:f269e3021894 935 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 936 int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 937 return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4);
elessair 0:f269e3021894 938 }
elessair 0:f269e3021894 939
elessair 0:f269e3021894 940 /** Creates an event bound to the event queue
elessair 0:f269e3021894 941 *
elessair 0:f269e3021894 942 * Constructs an event bound to the specified event queue. The specified
elessair 0:f269e3021894 943 * callback acts as the target for the event and is executed in the
elessair 0:f269e3021894 944 * context of the event queue's dispatch loop once posted.
elessair 0:f269e3021894 945 *
elessair 0:f269e3021894 946 * @param f Function to execute when the event is dispatched
elessair 0:f269e3021894 947 * @param a0..a4 Arguments to pass to the callback
elessair 0:f269e3021894 948 * @return Event that will dispatch on the specific queue
elessair 0:f269e3021894 949 */
elessair 0:f269e3021894 950 template <typename R>
elessair 0:f269e3021894 951 Event<void()> event(R (*func)());
elessair 0:f269e3021894 952
elessair 0:f269e3021894 953 /** Creates an event bound to the event queue
elessair 0:f269e3021894 954 * @see EventQueue::event
elessair 0:f269e3021894 955 */
elessair 0:f269e3021894 956 template <typename T, typename R>
elessair 0:f269e3021894 957 Event<void()> event(T *obj, R (T::*method)());
elessair 0:f269e3021894 958
elessair 0:f269e3021894 959 /** Creates an event bound to the event queue
elessair 0:f269e3021894 960 * @see EventQueue::event
elessair 0:f269e3021894 961 */
elessair 0:f269e3021894 962 template <typename T, typename R>
elessair 0:f269e3021894 963 Event<void()> event(const T *obj, R (T::*method)() const);
elessair 0:f269e3021894 964
elessair 0:f269e3021894 965 /** Creates an event bound to the event queue
elessair 0:f269e3021894 966 * @see EventQueue::event
elessair 0:f269e3021894 967 */
elessair 0:f269e3021894 968 template <typename T, typename R>
elessair 0:f269e3021894 969 Event<void()> event(volatile T *obj, R (T::*method)() volatile);
elessair 0:f269e3021894 970
elessair 0:f269e3021894 971 /** Creates an event bound to the event queue
elessair 0:f269e3021894 972 * @see EventQueue::event
elessair 0:f269e3021894 973 */
elessair 0:f269e3021894 974 template <typename T, typename R>
elessair 0:f269e3021894 975 Event<void()> event(const volatile T *obj, R (T::*method)() const volatile);
elessair 0:f269e3021894 976
elessair 0:f269e3021894 977 /** Creates an event bound to the event queue
elessair 0:f269e3021894 978 * @see EventQueue::event
elessair 0:f269e3021894 979 */
elessair 0:f269e3021894 980 template <typename R, typename B0, typename C0>
elessair 0:f269e3021894 981 Event<void()> event(R (*func)(B0), C0 c0);
elessair 0:f269e3021894 982
elessair 0:f269e3021894 983 /** Creates an event bound to the event queue
elessair 0:f269e3021894 984 * @see EventQueue::event
elessair 0:f269e3021894 985 */
elessair 0:f269e3021894 986 template <typename T, typename R, typename B0, typename C0>
elessair 0:f269e3021894 987 Event<void()> event(T *obj, R (T::*method)(B0), C0 c0);
elessair 0:f269e3021894 988
elessair 0:f269e3021894 989 /** Creates an event bound to the event queue
elessair 0:f269e3021894 990 * @see EventQueue::event
elessair 0:f269e3021894 991 */
elessair 0:f269e3021894 992 template <typename T, typename R, typename B0, typename C0>
elessair 0:f269e3021894 993 Event<void()> event(const T *obj, R (T::*method)(B0) const, C0 c0);
elessair 0:f269e3021894 994
elessair 0:f269e3021894 995 /** Creates an event bound to the event queue
elessair 0:f269e3021894 996 * @see EventQueue::event
elessair 0:f269e3021894 997 */
elessair 0:f269e3021894 998 template <typename T, typename R, typename B0, typename C0>
elessair 0:f269e3021894 999 Event<void()> event(volatile T *obj, R (T::*method)(B0) volatile, C0 c0);
elessair 0:f269e3021894 1000
elessair 0:f269e3021894 1001 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1002 * @see EventQueue::event
elessair 0:f269e3021894 1003 */
elessair 0:f269e3021894 1004 template <typename T, typename R, typename B0, typename C0>
elessair 0:f269e3021894 1005 Event<void()> event(const volatile T *obj, R (T::*method)(B0) const volatile, C0 c0);
elessair 0:f269e3021894 1006
elessair 0:f269e3021894 1007 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1008 * @see EventQueue::event
elessair 0:f269e3021894 1009 */
elessair 0:f269e3021894 1010 template <typename R, typename B0, typename B1, typename C0, typename C1>
elessair 0:f269e3021894 1011 Event<void()> event(R (*func)(B0, B1), C0 c0, C1 c1);
elessair 0:f269e3021894 1012
elessair 0:f269e3021894 1013 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1014 * @see EventQueue::event
elessair 0:f269e3021894 1015 */
elessair 0:f269e3021894 1016 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1>
elessair 0:f269e3021894 1017 Event<void()> event(T *obj, R (T::*method)(B0, B1), C0 c0, C1 c1);
elessair 0:f269e3021894 1018
elessair 0:f269e3021894 1019 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1020 * @see EventQueue::event
elessair 0:f269e3021894 1021 */
elessair 0:f269e3021894 1022 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1>
elessair 0:f269e3021894 1023 Event<void()> event(const T *obj, R (T::*method)(B0, B1) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1024
elessair 0:f269e3021894 1025 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1026 * @see EventQueue::event
elessair 0:f269e3021894 1027 */
elessair 0:f269e3021894 1028 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1>
elessair 0:f269e3021894 1029 Event<void()> event(volatile T *obj, R (T::*method)(B0, B1) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1030
elessair 0:f269e3021894 1031 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1032 * @see EventQueue::event
elessair 0:f269e3021894 1033 */
elessair 0:f269e3021894 1034 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1>
elessair 0:f269e3021894 1035 Event<void()> event(const volatile T *obj, R (T::*method)(B0, B1) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1036
elessair 0:f269e3021894 1037 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1038 * @see EventQueue::event
elessair 0:f269e3021894 1039 */
elessair 0:f269e3021894 1040 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 1041 Event<void()> event(R (*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1042
elessair 0:f269e3021894 1043 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1044 * @see EventQueue::event
elessair 0:f269e3021894 1045 */
elessair 0:f269e3021894 1046 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 1047 Event<void()> event(T *obj, R (T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1048
elessair 0:f269e3021894 1049 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1050 * @see EventQueue::event
elessair 0:f269e3021894 1051 */
elessair 0:f269e3021894 1052 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 1053 Event<void()> event(const T *obj, R (T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1054
elessair 0:f269e3021894 1055 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1056 * @see EventQueue::event
elessair 0:f269e3021894 1057 */
elessair 0:f269e3021894 1058 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 1059 Event<void()> event(volatile T *obj, R (T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1060
elessair 0:f269e3021894 1061 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1062 * @see EventQueue::event
elessair 0:f269e3021894 1063 */
elessair 0:f269e3021894 1064 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 1065 Event<void()> event(const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1066
elessair 0:f269e3021894 1067 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1068 * @see EventQueue::event
elessair 0:f269e3021894 1069 */
elessair 0:f269e3021894 1070 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 1071 Event<void()> event(R (*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1072
elessair 0:f269e3021894 1073 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1074 * @see EventQueue::event
elessair 0:f269e3021894 1075 */
elessair 0:f269e3021894 1076 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 1077 Event<void()> event(T *obj, R (T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1078
elessair 0:f269e3021894 1079 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1080 * @see EventQueue::event
elessair 0:f269e3021894 1081 */
elessair 0:f269e3021894 1082 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 1083 Event<void()> event(const T *obj, R (T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1084
elessair 0:f269e3021894 1085 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1086 * @see EventQueue::event
elessair 0:f269e3021894 1087 */
elessair 0:f269e3021894 1088 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 1089 Event<void()> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1090
elessair 0:f269e3021894 1091 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1092 * @see EventQueue::event
elessair 0:f269e3021894 1093 */
elessair 0:f269e3021894 1094 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 1095 Event<void()> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1096
elessair 0:f269e3021894 1097 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1098 * @see EventQueue::event
elessair 0:f269e3021894 1099 */
elessair 0:f269e3021894 1100 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 1101 Event<void()> event(R (*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1102
elessair 0:f269e3021894 1103 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1104 * @see EventQueue::event
elessair 0:f269e3021894 1105 */
elessair 0:f269e3021894 1106 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 1107 Event<void()> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1108
elessair 0:f269e3021894 1109 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1110 * @see EventQueue::event
elessair 0:f269e3021894 1111 */
elessair 0:f269e3021894 1112 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 1113 Event<void()> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1114
elessair 0:f269e3021894 1115 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1116 * @see EventQueue::event
elessair 0:f269e3021894 1117 */
elessair 0:f269e3021894 1118 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 1119 Event<void()> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1120
elessair 0:f269e3021894 1121 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1122 * @see EventQueue::event
elessair 0:f269e3021894 1123 */
elessair 0:f269e3021894 1124 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 1125 Event<void()> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1126
elessair 0:f269e3021894 1127 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1128 * @see EventQueue::event
elessair 0:f269e3021894 1129 */
elessair 0:f269e3021894 1130 template <typename R, typename A0>
elessair 0:f269e3021894 1131 Event<void(A0)> event(R (*func)(A0));
elessair 0:f269e3021894 1132
elessair 0:f269e3021894 1133 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1134 * @see EventQueue::event
elessair 0:f269e3021894 1135 */
elessair 0:f269e3021894 1136 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 1137 Event<void(A0)> event(T *obj, R (T::*method)(A0));
elessair 0:f269e3021894 1138
elessair 0:f269e3021894 1139 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1140 * @see EventQueue::event
elessair 0:f269e3021894 1141 */
elessair 0:f269e3021894 1142 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 1143 Event<void(A0)> event(const T *obj, R (T::*method)(A0) const);
elessair 0:f269e3021894 1144
elessair 0:f269e3021894 1145 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1146 * @see EventQueue::event
elessair 0:f269e3021894 1147 */
elessair 0:f269e3021894 1148 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 1149 Event<void(A0)> event(volatile T *obj, R (T::*method)(A0) volatile);
elessair 0:f269e3021894 1150
elessair 0:f269e3021894 1151 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1152 * @see EventQueue::event
elessair 0:f269e3021894 1153 */
elessair 0:f269e3021894 1154 template <typename T, typename R, typename A0>
elessair 0:f269e3021894 1155 Event<void(A0)> event(const volatile T *obj, R (T::*method)(A0) const volatile);
elessair 0:f269e3021894 1156
elessair 0:f269e3021894 1157 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1158 * @see EventQueue::event
elessair 0:f269e3021894 1159 */
elessair 0:f269e3021894 1160 template <typename R, typename B0, typename C0, typename A0>
elessair 0:f269e3021894 1161 Event<void(A0)> event(R (*func)(B0, A0), C0 c0);
elessair 0:f269e3021894 1162
elessair 0:f269e3021894 1163 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1164 * @see EventQueue::event
elessair 0:f269e3021894 1165 */
elessair 0:f269e3021894 1166 template <typename T, typename R, typename B0, typename C0, typename A0>
elessair 0:f269e3021894 1167 Event<void(A0)> event(T *obj, R (T::*method)(B0, A0), C0 c0);
elessair 0:f269e3021894 1168
elessair 0:f269e3021894 1169 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1170 * @see EventQueue::event
elessair 0:f269e3021894 1171 */
elessair 0:f269e3021894 1172 template <typename T, typename R, typename B0, typename C0, typename A0>
elessair 0:f269e3021894 1173 Event<void(A0)> event(const T *obj, R (T::*method)(B0, A0) const, C0 c0);
elessair 0:f269e3021894 1174
elessair 0:f269e3021894 1175 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1176 * @see EventQueue::event
elessair 0:f269e3021894 1177 */
elessair 0:f269e3021894 1178 template <typename T, typename R, typename B0, typename C0, typename A0>
elessair 0:f269e3021894 1179 Event<void(A0)> event(volatile T *obj, R (T::*method)(B0, A0) volatile, C0 c0);
elessair 0:f269e3021894 1180
elessair 0:f269e3021894 1181 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1182 * @see EventQueue::event
elessair 0:f269e3021894 1183 */
elessair 0:f269e3021894 1184 template <typename T, typename R, typename B0, typename C0, typename A0>
elessair 0:f269e3021894 1185 Event<void(A0)> event(const volatile T *obj, R (T::*method)(B0, A0) const volatile, C0 c0);
elessair 0:f269e3021894 1186
elessair 0:f269e3021894 1187 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1188 * @see EventQueue::event
elessair 0:f269e3021894 1189 */
elessair 0:f269e3021894 1190 template <typename R, typename B0, typename B1, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 1191 Event<void(A0)> event(R (*func)(B0, B1, A0), C0 c0, C1 c1);
elessair 0:f269e3021894 1192
elessair 0:f269e3021894 1193 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1194 * @see EventQueue::event
elessair 0:f269e3021894 1195 */
elessair 0:f269e3021894 1196 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 1197 Event<void(A0)> event(T *obj, R (T::*method)(B0, B1, A0), C0 c0, C1 c1);
elessair 0:f269e3021894 1198
elessair 0:f269e3021894 1199 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1200 * @see EventQueue::event
elessair 0:f269e3021894 1201 */
elessair 0:f269e3021894 1202 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 1203 Event<void(A0)> event(const T *obj, R (T::*method)(B0, B1, A0) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1204
elessair 0:f269e3021894 1205 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1206 * @see EventQueue::event
elessair 0:f269e3021894 1207 */
elessair 0:f269e3021894 1208 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 1209 Event<void(A0)> event(volatile T *obj, R (T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1210
elessair 0:f269e3021894 1211 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1212 * @see EventQueue::event
elessair 0:f269e3021894 1213 */
elessair 0:f269e3021894 1214 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 1215 Event<void(A0)> event(const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1216
elessair 0:f269e3021894 1217 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1218 * @see EventQueue::event
elessair 0:f269e3021894 1219 */
elessair 0:f269e3021894 1220 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 1221 Event<void(A0)> event(R (*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1222
elessair 0:f269e3021894 1223 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1224 * @see EventQueue::event
elessair 0:f269e3021894 1225 */
elessair 0:f269e3021894 1226 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 1227 Event<void(A0)> event(T *obj, R (T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1228
elessair 0:f269e3021894 1229 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1230 * @see EventQueue::event
elessair 0:f269e3021894 1231 */
elessair 0:f269e3021894 1232 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 1233 Event<void(A0)> event(const T *obj, R (T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1234
elessair 0:f269e3021894 1235 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1236 * @see EventQueue::event
elessair 0:f269e3021894 1237 */
elessair 0:f269e3021894 1238 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 1239 Event<void(A0)> event(volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1240
elessair 0:f269e3021894 1241 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1242 * @see EventQueue::event
elessair 0:f269e3021894 1243 */
elessair 0:f269e3021894 1244 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 1245 Event<void(A0)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1246
elessair 0:f269e3021894 1247 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1248 * @see EventQueue::event
elessair 0:f269e3021894 1249 */
elessair 0:f269e3021894 1250 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 1251 Event<void(A0)> event(R (*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1252
elessair 0:f269e3021894 1253 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1254 * @see EventQueue::event
elessair 0:f269e3021894 1255 */
elessair 0:f269e3021894 1256 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 1257 Event<void(A0)> event(T *obj, R (T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1258
elessair 0:f269e3021894 1259 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1260 * @see EventQueue::event
elessair 0:f269e3021894 1261 */
elessair 0:f269e3021894 1262 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 1263 Event<void(A0)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1264
elessair 0:f269e3021894 1265 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1266 * @see EventQueue::event
elessair 0:f269e3021894 1267 */
elessair 0:f269e3021894 1268 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 1269 Event<void(A0)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1270
elessair 0:f269e3021894 1271 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1272 * @see EventQueue::event
elessair 0:f269e3021894 1273 */
elessair 0:f269e3021894 1274 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 1275 Event<void(A0)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1276
elessair 0:f269e3021894 1277 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1278 * @see EventQueue::event
elessair 0:f269e3021894 1279 */
elessair 0:f269e3021894 1280 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 1281 Event<void(A0)> event(R (*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1282
elessair 0:f269e3021894 1283 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1284 * @see EventQueue::event
elessair 0:f269e3021894 1285 */
elessair 0:f269e3021894 1286 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 1287 Event<void(A0)> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1288
elessair 0:f269e3021894 1289 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1290 * @see EventQueue::event
elessair 0:f269e3021894 1291 */
elessair 0:f269e3021894 1292 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 1293 Event<void(A0)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1294
elessair 0:f269e3021894 1295 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1296 * @see EventQueue::event
elessair 0:f269e3021894 1297 */
elessair 0:f269e3021894 1298 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 1299 Event<void(A0)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1300
elessair 0:f269e3021894 1301 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1302 * @see EventQueue::event
elessair 0:f269e3021894 1303 */
elessair 0:f269e3021894 1304 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 1305 Event<void(A0)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1306
elessair 0:f269e3021894 1307 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1308 * @see EventQueue::event
elessair 0:f269e3021894 1309 */
elessair 0:f269e3021894 1310 template <typename R, typename A0, typename A1>
elessair 0:f269e3021894 1311 Event<void(A0, A1)> event(R (*func)(A0, A1));
elessair 0:f269e3021894 1312
elessair 0:f269e3021894 1313 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1314 * @see EventQueue::event
elessair 0:f269e3021894 1315 */
elessair 0:f269e3021894 1316 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 1317 Event<void(A0, A1)> event(T *obj, R (T::*method)(A0, A1));
elessair 0:f269e3021894 1318
elessair 0:f269e3021894 1319 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1320 * @see EventQueue::event
elessair 0:f269e3021894 1321 */
elessair 0:f269e3021894 1322 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 1323 Event<void(A0, A1)> event(const T *obj, R (T::*method)(A0, A1) const);
elessair 0:f269e3021894 1324
elessair 0:f269e3021894 1325 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1326 * @see EventQueue::event
elessair 0:f269e3021894 1327 */
elessair 0:f269e3021894 1328 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 1329 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(A0, A1) volatile);
elessair 0:f269e3021894 1330
elessair 0:f269e3021894 1331 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1332 * @see EventQueue::event
elessair 0:f269e3021894 1333 */
elessair 0:f269e3021894 1334 template <typename T, typename R, typename A0, typename A1>
elessair 0:f269e3021894 1335 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(A0, A1) const volatile);
elessair 0:f269e3021894 1336
elessair 0:f269e3021894 1337 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1338 * @see EventQueue::event
elessair 0:f269e3021894 1339 */
elessair 0:f269e3021894 1340 template <typename R, typename B0, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 1341 Event<void(A0, A1)> event(R (*func)(B0, A0, A1), C0 c0);
elessair 0:f269e3021894 1342
elessair 0:f269e3021894 1343 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1344 * @see EventQueue::event
elessair 0:f269e3021894 1345 */
elessair 0:f269e3021894 1346 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 1347 Event<void(A0, A1)> event(T *obj, R (T::*method)(B0, A0, A1), C0 c0);
elessair 0:f269e3021894 1348
elessair 0:f269e3021894 1349 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1350 * @see EventQueue::event
elessair 0:f269e3021894 1351 */
elessair 0:f269e3021894 1352 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 1353 Event<void(A0, A1)> event(const T *obj, R (T::*method)(B0, A0, A1) const, C0 c0);
elessair 0:f269e3021894 1354
elessair 0:f269e3021894 1355 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1356 * @see EventQueue::event
elessair 0:f269e3021894 1357 */
elessair 0:f269e3021894 1358 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 1359 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(B0, A0, A1) volatile, C0 c0);
elessair 0:f269e3021894 1360
elessair 0:f269e3021894 1361 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1362 * @see EventQueue::event
elessair 0:f269e3021894 1363 */
elessair 0:f269e3021894 1364 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 1365 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, C0 c0);
elessair 0:f269e3021894 1366
elessair 0:f269e3021894 1367 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1368 * @see EventQueue::event
elessair 0:f269e3021894 1369 */
elessair 0:f269e3021894 1370 template <typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 1371 Event<void(A0, A1)> event(R (*func)(B0, B1, A0, A1), C0 c0, C1 c1);
elessair 0:f269e3021894 1372
elessair 0:f269e3021894 1373 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1374 * @see EventQueue::event
elessair 0:f269e3021894 1375 */
elessair 0:f269e3021894 1376 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 1377 Event<void(A0, A1)> event(T *obj, R (T::*method)(B0, B1, A0, A1), C0 c0, C1 c1);
elessair 0:f269e3021894 1378
elessair 0:f269e3021894 1379 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1380 * @see EventQueue::event
elessair 0:f269e3021894 1381 */
elessair 0:f269e3021894 1382 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 1383 Event<void(A0, A1)> event(const T *obj, R (T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1384
elessair 0:f269e3021894 1385 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1386 * @see EventQueue::event
elessair 0:f269e3021894 1387 */
elessair 0:f269e3021894 1388 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 1389 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1390
elessair 0:f269e3021894 1391 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1392 * @see EventQueue::event
elessair 0:f269e3021894 1393 */
elessair 0:f269e3021894 1394 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 1395 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1396
elessair 0:f269e3021894 1397 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1398 * @see EventQueue::event
elessair 0:f269e3021894 1399 */
elessair 0:f269e3021894 1400 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 1401 Event<void(A0, A1)> event(R (*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1402
elessair 0:f269e3021894 1403 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1404 * @see EventQueue::event
elessair 0:f269e3021894 1405 */
elessair 0:f269e3021894 1406 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 1407 Event<void(A0, A1)> event(T *obj, R (T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1408
elessair 0:f269e3021894 1409 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1410 * @see EventQueue::event
elessair 0:f269e3021894 1411 */
elessair 0:f269e3021894 1412 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 1413 Event<void(A0, A1)> event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1414
elessair 0:f269e3021894 1415 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1416 * @see EventQueue::event
elessair 0:f269e3021894 1417 */
elessair 0:f269e3021894 1418 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 1419 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1420
elessair 0:f269e3021894 1421 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1422 * @see EventQueue::event
elessair 0:f269e3021894 1423 */
elessair 0:f269e3021894 1424 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 1425 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1426
elessair 0:f269e3021894 1427 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1428 * @see EventQueue::event
elessair 0:f269e3021894 1429 */
elessair 0:f269e3021894 1430 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 1431 Event<void(A0, A1)> event(R (*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1432
elessair 0:f269e3021894 1433 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1434 * @see EventQueue::event
elessair 0:f269e3021894 1435 */
elessair 0:f269e3021894 1436 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 1437 Event<void(A0, A1)> event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1438
elessair 0:f269e3021894 1439 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1440 * @see EventQueue::event
elessair 0:f269e3021894 1441 */
elessair 0:f269e3021894 1442 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 1443 Event<void(A0, A1)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1444
elessair 0:f269e3021894 1445 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1446 * @see EventQueue::event
elessair 0:f269e3021894 1447 */
elessair 0:f269e3021894 1448 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 1449 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1450
elessair 0:f269e3021894 1451 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1452 * @see EventQueue::event
elessair 0:f269e3021894 1453 */
elessair 0:f269e3021894 1454 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 1455 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1456
elessair 0:f269e3021894 1457 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1458 * @see EventQueue::event
elessair 0:f269e3021894 1459 */
elessair 0:f269e3021894 1460 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 1461 Event<void(A0, A1)> event(R (*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1462
elessair 0:f269e3021894 1463 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1464 * @see EventQueue::event
elessair 0:f269e3021894 1465 */
elessair 0:f269e3021894 1466 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 1467 Event<void(A0, A1)> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1468
elessair 0:f269e3021894 1469 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1470 * @see EventQueue::event
elessair 0:f269e3021894 1471 */
elessair 0:f269e3021894 1472 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 1473 Event<void(A0, A1)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1474
elessair 0:f269e3021894 1475 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1476 * @see EventQueue::event
elessair 0:f269e3021894 1477 */
elessair 0:f269e3021894 1478 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 1479 Event<void(A0, A1)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1480
elessair 0:f269e3021894 1481 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1482 * @see EventQueue::event
elessair 0:f269e3021894 1483 */
elessair 0:f269e3021894 1484 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 1485 Event<void(A0, A1)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1486
elessair 0:f269e3021894 1487 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1488 * @see EventQueue::event
elessair 0:f269e3021894 1489 */
elessair 0:f269e3021894 1490 template <typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1491 Event<void(A0, A1, A2)> event(R (*func)(A0, A1, A2));
elessair 0:f269e3021894 1492
elessair 0:f269e3021894 1493 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1494 * @see EventQueue::event
elessair 0:f269e3021894 1495 */
elessair 0:f269e3021894 1496 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1497 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(A0, A1, A2));
elessair 0:f269e3021894 1498
elessair 0:f269e3021894 1499 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1500 * @see EventQueue::event
elessair 0:f269e3021894 1501 */
elessair 0:f269e3021894 1502 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1503 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(A0, A1, A2) const);
elessair 0:f269e3021894 1504
elessair 0:f269e3021894 1505 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1506 * @see EventQueue::event
elessair 0:f269e3021894 1507 */
elessair 0:f269e3021894 1508 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1509 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(A0, A1, A2) volatile);
elessair 0:f269e3021894 1510
elessair 0:f269e3021894 1511 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1512 * @see EventQueue::event
elessair 0:f269e3021894 1513 */
elessair 0:f269e3021894 1514 template <typename T, typename R, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1515 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile);
elessair 0:f269e3021894 1516
elessair 0:f269e3021894 1517 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1518 * @see EventQueue::event
elessair 0:f269e3021894 1519 */
elessair 0:f269e3021894 1520 template <typename R, typename B0, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1521 Event<void(A0, A1, A2)> event(R (*func)(B0, A0, A1, A2), C0 c0);
elessair 0:f269e3021894 1522
elessair 0:f269e3021894 1523 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1524 * @see EventQueue::event
elessair 0:f269e3021894 1525 */
elessair 0:f269e3021894 1526 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1527 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(B0, A0, A1, A2), C0 c0);
elessair 0:f269e3021894 1528
elessair 0:f269e3021894 1529 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1530 * @see EventQueue::event
elessair 0:f269e3021894 1531 */
elessair 0:f269e3021894 1532 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1533 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(B0, A0, A1, A2) const, C0 c0);
elessair 0:f269e3021894 1534
elessair 0:f269e3021894 1535 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1536 * @see EventQueue::event
elessair 0:f269e3021894 1537 */
elessair 0:f269e3021894 1538 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1539 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, C0 c0);
elessair 0:f269e3021894 1540
elessair 0:f269e3021894 1541 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1542 * @see EventQueue::event
elessair 0:f269e3021894 1543 */
elessair 0:f269e3021894 1544 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1545 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, C0 c0);
elessair 0:f269e3021894 1546
elessair 0:f269e3021894 1547 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1548 * @see EventQueue::event
elessair 0:f269e3021894 1549 */
elessair 0:f269e3021894 1550 template <typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1551 Event<void(A0, A1, A2)> event(R (*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1);
elessair 0:f269e3021894 1552
elessair 0:f269e3021894 1553 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1554 * @see EventQueue::event
elessair 0:f269e3021894 1555 */
elessair 0:f269e3021894 1556 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1557 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1);
elessair 0:f269e3021894 1558
elessair 0:f269e3021894 1559 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1560 * @see EventQueue::event
elessair 0:f269e3021894 1561 */
elessair 0:f269e3021894 1562 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1563 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1564
elessair 0:f269e3021894 1565 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1566 * @see EventQueue::event
elessair 0:f269e3021894 1567 */
elessair 0:f269e3021894 1568 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1569 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1570
elessair 0:f269e3021894 1571 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1572 * @see EventQueue::event
elessair 0:f269e3021894 1573 */
elessair 0:f269e3021894 1574 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1575 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1576
elessair 0:f269e3021894 1577 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1578 * @see EventQueue::event
elessair 0:f269e3021894 1579 */
elessair 0:f269e3021894 1580 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1581 Event<void(A0, A1, A2)> event(R (*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1582
elessair 0:f269e3021894 1583 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1584 * @see EventQueue::event
elessair 0:f269e3021894 1585 */
elessair 0:f269e3021894 1586 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1587 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1588
elessair 0:f269e3021894 1589 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1590 * @see EventQueue::event
elessair 0:f269e3021894 1591 */
elessair 0:f269e3021894 1592 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1593 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1594
elessair 0:f269e3021894 1595 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1596 * @see EventQueue::event
elessair 0:f269e3021894 1597 */
elessair 0:f269e3021894 1598 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1599 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1600
elessair 0:f269e3021894 1601 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1602 * @see EventQueue::event
elessair 0:f269e3021894 1603 */
elessair 0:f269e3021894 1604 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1605 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1606
elessair 0:f269e3021894 1607 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1608 * @see EventQueue::event
elessair 0:f269e3021894 1609 */
elessair 0:f269e3021894 1610 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1611 Event<void(A0, A1, A2)> event(R (*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1612
elessair 0:f269e3021894 1613 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1614 * @see EventQueue::event
elessair 0:f269e3021894 1615 */
elessair 0:f269e3021894 1616 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1617 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1618
elessair 0:f269e3021894 1619 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1620 * @see EventQueue::event
elessair 0:f269e3021894 1621 */
elessair 0:f269e3021894 1622 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1623 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1624
elessair 0:f269e3021894 1625 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1626 * @see EventQueue::event
elessair 0:f269e3021894 1627 */
elessair 0:f269e3021894 1628 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1629 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1630
elessair 0:f269e3021894 1631 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1632 * @see EventQueue::event
elessair 0:f269e3021894 1633 */
elessair 0:f269e3021894 1634 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1635 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1636
elessair 0:f269e3021894 1637 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1638 * @see EventQueue::event
elessair 0:f269e3021894 1639 */
elessair 0:f269e3021894 1640 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1641 Event<void(A0, A1, A2)> event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1642
elessair 0:f269e3021894 1643 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1644 * @see EventQueue::event
elessair 0:f269e3021894 1645 */
elessair 0:f269e3021894 1646 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1647 Event<void(A0, A1, A2)> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1648
elessair 0:f269e3021894 1649 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1650 * @see EventQueue::event
elessair 0:f269e3021894 1651 */
elessair 0:f269e3021894 1652 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1653 Event<void(A0, A1, A2)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1654
elessair 0:f269e3021894 1655 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1656 * @see EventQueue::event
elessair 0:f269e3021894 1657 */
elessair 0:f269e3021894 1658 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1659 Event<void(A0, A1, A2)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1660
elessair 0:f269e3021894 1661 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1662 * @see EventQueue::event
elessair 0:f269e3021894 1663 */
elessair 0:f269e3021894 1664 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 1665 Event<void(A0, A1, A2)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1666
elessair 0:f269e3021894 1667 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1668 * @see EventQueue::event
elessair 0:f269e3021894 1669 */
elessair 0:f269e3021894 1670 template <typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1671 Event<void(A0, A1, A2, A3)> event(R (*func)(A0, A1, A2, A3));
elessair 0:f269e3021894 1672
elessair 0:f269e3021894 1673 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1674 * @see EventQueue::event
elessair 0:f269e3021894 1675 */
elessair 0:f269e3021894 1676 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1677 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(A0, A1, A2, A3));
elessair 0:f269e3021894 1678
elessair 0:f269e3021894 1679 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1680 * @see EventQueue::event
elessair 0:f269e3021894 1681 */
elessair 0:f269e3021894 1682 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1683 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(A0, A1, A2, A3) const);
elessair 0:f269e3021894 1684
elessair 0:f269e3021894 1685 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1686 * @see EventQueue::event
elessair 0:f269e3021894 1687 */
elessair 0:f269e3021894 1688 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1689 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile);
elessair 0:f269e3021894 1690
elessair 0:f269e3021894 1691 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1692 * @see EventQueue::event
elessair 0:f269e3021894 1693 */
elessair 0:f269e3021894 1694 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1695 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile);
elessair 0:f269e3021894 1696
elessair 0:f269e3021894 1697 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1698 * @see EventQueue::event
elessair 0:f269e3021894 1699 */
elessair 0:f269e3021894 1700 template <typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1701 Event<void(A0, A1, A2, A3)> event(R (*func)(B0, A0, A1, A2, A3), C0 c0);
elessair 0:f269e3021894 1702
elessair 0:f269e3021894 1703 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1704 * @see EventQueue::event
elessair 0:f269e3021894 1705 */
elessair 0:f269e3021894 1706 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1707 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(B0, A0, A1, A2, A3), C0 c0);
elessair 0:f269e3021894 1708
elessair 0:f269e3021894 1709 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1710 * @see EventQueue::event
elessair 0:f269e3021894 1711 */
elessair 0:f269e3021894 1712 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1713 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, C0 c0);
elessair 0:f269e3021894 1714
elessair 0:f269e3021894 1715 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1716 * @see EventQueue::event
elessair 0:f269e3021894 1717 */
elessair 0:f269e3021894 1718 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1719 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0);
elessair 0:f269e3021894 1720
elessair 0:f269e3021894 1721 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1722 * @see EventQueue::event
elessair 0:f269e3021894 1723 */
elessair 0:f269e3021894 1724 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1725 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0);
elessair 0:f269e3021894 1726
elessair 0:f269e3021894 1727 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1728 * @see EventQueue::event
elessair 0:f269e3021894 1729 */
elessair 0:f269e3021894 1730 template <typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1731 Event<void(A0, A1, A2, A3)> event(R (*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1);
elessair 0:f269e3021894 1732
elessair 0:f269e3021894 1733 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1734 * @see EventQueue::event
elessair 0:f269e3021894 1735 */
elessair 0:f269e3021894 1736 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1737 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1);
elessair 0:f269e3021894 1738
elessair 0:f269e3021894 1739 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1740 * @see EventQueue::event
elessair 0:f269e3021894 1741 */
elessair 0:f269e3021894 1742 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1743 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1744
elessair 0:f269e3021894 1745 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1746 * @see EventQueue::event
elessair 0:f269e3021894 1747 */
elessair 0:f269e3021894 1748 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1749 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1750
elessair 0:f269e3021894 1751 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1752 * @see EventQueue::event
elessair 0:f269e3021894 1753 */
elessair 0:f269e3021894 1754 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1755 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1756
elessair 0:f269e3021894 1757 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1758 * @see EventQueue::event
elessair 0:f269e3021894 1759 */
elessair 0:f269e3021894 1760 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1761 Event<void(A0, A1, A2, A3)> event(R (*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1762
elessair 0:f269e3021894 1763 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1764 * @see EventQueue::event
elessair 0:f269e3021894 1765 */
elessair 0:f269e3021894 1766 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1767 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1768
elessair 0:f269e3021894 1769 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1770 * @see EventQueue::event
elessair 0:f269e3021894 1771 */
elessair 0:f269e3021894 1772 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1773 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1774
elessair 0:f269e3021894 1775 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1776 * @see EventQueue::event
elessair 0:f269e3021894 1777 */
elessair 0:f269e3021894 1778 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1779 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1780
elessair 0:f269e3021894 1781 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1782 * @see EventQueue::event
elessair 0:f269e3021894 1783 */
elessair 0:f269e3021894 1784 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1785 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1786
elessair 0:f269e3021894 1787 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1788 * @see EventQueue::event
elessair 0:f269e3021894 1789 */
elessair 0:f269e3021894 1790 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1791 Event<void(A0, A1, A2, A3)> event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1792
elessair 0:f269e3021894 1793 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1794 * @see EventQueue::event
elessair 0:f269e3021894 1795 */
elessair 0:f269e3021894 1796 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1797 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1798
elessair 0:f269e3021894 1799 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1800 * @see EventQueue::event
elessair 0:f269e3021894 1801 */
elessair 0:f269e3021894 1802 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1803 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1804
elessair 0:f269e3021894 1805 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1806 * @see EventQueue::event
elessair 0:f269e3021894 1807 */
elessair 0:f269e3021894 1808 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1809 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1810
elessair 0:f269e3021894 1811 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1812 * @see EventQueue::event
elessair 0:f269e3021894 1813 */
elessair 0:f269e3021894 1814 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1815 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1816
elessair 0:f269e3021894 1817 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1818 * @see EventQueue::event
elessair 0:f269e3021894 1819 */
elessair 0:f269e3021894 1820 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1821 Event<void(A0, A1, A2, A3)> event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1822
elessair 0:f269e3021894 1823 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1824 * @see EventQueue::event
elessair 0:f269e3021894 1825 */
elessair 0:f269e3021894 1826 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1827 Event<void(A0, A1, A2, A3)> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1828
elessair 0:f269e3021894 1829 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1830 * @see EventQueue::event
elessair 0:f269e3021894 1831 */
elessair 0:f269e3021894 1832 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1833 Event<void(A0, A1, A2, A3)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1834
elessair 0:f269e3021894 1835 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1836 * @see EventQueue::event
elessair 0:f269e3021894 1837 */
elessair 0:f269e3021894 1838 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1839 Event<void(A0, A1, A2, A3)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1840
elessair 0:f269e3021894 1841 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1842 * @see EventQueue::event
elessair 0:f269e3021894 1843 */
elessair 0:f269e3021894 1844 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 1845 Event<void(A0, A1, A2, A3)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 1846
elessair 0:f269e3021894 1847 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1848 * @see EventQueue::event
elessair 0:f269e3021894 1849 */
elessair 0:f269e3021894 1850 template <typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1851 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(A0, A1, A2, A3, A4));
elessair 0:f269e3021894 1852
elessair 0:f269e3021894 1853 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1854 * @see EventQueue::event
elessair 0:f269e3021894 1855 */
elessair 0:f269e3021894 1856 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1857 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(A0, A1, A2, A3, A4));
elessair 0:f269e3021894 1858
elessair 0:f269e3021894 1859 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1860 * @see EventQueue::event
elessair 0:f269e3021894 1861 */
elessair 0:f269e3021894 1862 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1863 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const);
elessair 0:f269e3021894 1864
elessair 0:f269e3021894 1865 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1866 * @see EventQueue::event
elessair 0:f269e3021894 1867 */
elessair 0:f269e3021894 1868 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1869 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile);
elessair 0:f269e3021894 1870
elessair 0:f269e3021894 1871 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1872 * @see EventQueue::event
elessair 0:f269e3021894 1873 */
elessair 0:f269e3021894 1874 template <typename T, typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1875 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile);
elessair 0:f269e3021894 1876
elessair 0:f269e3021894 1877 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1878 * @see EventQueue::event
elessair 0:f269e3021894 1879 */
elessair 0:f269e3021894 1880 template <typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1881 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(B0, A0, A1, A2, A3, A4), C0 c0);
elessair 0:f269e3021894 1882
elessair 0:f269e3021894 1883 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1884 * @see EventQueue::event
elessair 0:f269e3021894 1885 */
elessair 0:f269e3021894 1886 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1887 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), C0 c0);
elessair 0:f269e3021894 1888
elessair 0:f269e3021894 1889 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1890 * @see EventQueue::event
elessair 0:f269e3021894 1891 */
elessair 0:f269e3021894 1892 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1893 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0);
elessair 0:f269e3021894 1894
elessair 0:f269e3021894 1895 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1896 * @see EventQueue::event
elessair 0:f269e3021894 1897 */
elessair 0:f269e3021894 1898 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1899 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0);
elessair 0:f269e3021894 1900
elessair 0:f269e3021894 1901 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1902 * @see EventQueue::event
elessair 0:f269e3021894 1903 */
elessair 0:f269e3021894 1904 template <typename T, typename R, typename B0, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1905 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0);
elessair 0:f269e3021894 1906
elessair 0:f269e3021894 1907 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1908 * @see EventQueue::event
elessair 0:f269e3021894 1909 */
elessair 0:f269e3021894 1910 template <typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1911 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1);
elessair 0:f269e3021894 1912
elessair 0:f269e3021894 1913 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1914 * @see EventQueue::event
elessair 0:f269e3021894 1915 */
elessair 0:f269e3021894 1916 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1917 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1);
elessair 0:f269e3021894 1918
elessair 0:f269e3021894 1919 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1920 * @see EventQueue::event
elessair 0:f269e3021894 1921 */
elessair 0:f269e3021894 1922 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1923 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1);
elessair 0:f269e3021894 1924
elessair 0:f269e3021894 1925 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1926 * @see EventQueue::event
elessair 0:f269e3021894 1927 */
elessair 0:f269e3021894 1928 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1929 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1930
elessair 0:f269e3021894 1931 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1932 * @see EventQueue::event
elessair 0:f269e3021894 1933 */
elessair 0:f269e3021894 1934 template <typename T, typename R, typename B0, typename B1, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1935 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1);
elessair 0:f269e3021894 1936
elessair 0:f269e3021894 1937 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1938 * @see EventQueue::event
elessair 0:f269e3021894 1939 */
elessair 0:f269e3021894 1940 template <typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1941 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1942
elessair 0:f269e3021894 1943 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1944 * @see EventQueue::event
elessair 0:f269e3021894 1945 */
elessair 0:f269e3021894 1946 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1947 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1948
elessair 0:f269e3021894 1949 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1950 * @see EventQueue::event
elessair 0:f269e3021894 1951 */
elessair 0:f269e3021894 1952 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1953 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1954
elessair 0:f269e3021894 1955 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1956 * @see EventQueue::event
elessair 0:f269e3021894 1957 */
elessair 0:f269e3021894 1958 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1959 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1960
elessair 0:f269e3021894 1961 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1962 * @see EventQueue::event
elessair 0:f269e3021894 1963 */
elessair 0:f269e3021894 1964 template <typename T, typename R, typename B0, typename B1, typename B2, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1965 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2);
elessair 0:f269e3021894 1966
elessair 0:f269e3021894 1967 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1968 * @see EventQueue::event
elessair 0:f269e3021894 1969 */
elessair 0:f269e3021894 1970 template <typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1971 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1972
elessair 0:f269e3021894 1973 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1974 * @see EventQueue::event
elessair 0:f269e3021894 1975 */
elessair 0:f269e3021894 1976 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1977 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1978
elessair 0:f269e3021894 1979 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1980 * @see EventQueue::event
elessair 0:f269e3021894 1981 */
elessair 0:f269e3021894 1982 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1983 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1984
elessair 0:f269e3021894 1985 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1986 * @see EventQueue::event
elessair 0:f269e3021894 1987 */
elessair 0:f269e3021894 1988 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1989 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1990
elessair 0:f269e3021894 1991 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1992 * @see EventQueue::event
elessair 0:f269e3021894 1993 */
elessair 0:f269e3021894 1994 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 1995 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3);
elessair 0:f269e3021894 1996
elessair 0:f269e3021894 1997 /** Creates an event bound to the event queue
elessair 0:f269e3021894 1998 * @see EventQueue::event
elessair 0:f269e3021894 1999 */
elessair 0:f269e3021894 2000 template <typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2001 Event<void(A0, A1, A2, A3, A4)> event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 2002
elessair 0:f269e3021894 2003 /** Creates an event bound to the event queue
elessair 0:f269e3021894 2004 * @see EventQueue::event
elessair 0:f269e3021894 2005 */
elessair 0:f269e3021894 2006 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2007 Event<void(A0, A1, A2, A3, A4)> event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 2008
elessair 0:f269e3021894 2009 /** Creates an event bound to the event queue
elessair 0:f269e3021894 2010 * @see EventQueue::event
elessair 0:f269e3021894 2011 */
elessair 0:f269e3021894 2012 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2013 Event<void(A0, A1, A2, A3, A4)> event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 2014
elessair 0:f269e3021894 2015 /** Creates an event bound to the event queue
elessair 0:f269e3021894 2016 * @see EventQueue::event
elessair 0:f269e3021894 2017 */
elessair 0:f269e3021894 2018 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2019 Event<void(A0, A1, A2, A3, A4)> event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 2020
elessair 0:f269e3021894 2021 /** Creates an event bound to the event queue
elessair 0:f269e3021894 2022 * @see EventQueue::event
elessair 0:f269e3021894 2023 */
elessair 0:f269e3021894 2024 template <typename T, typename R, typename B0, typename B1, typename B2, typename B3, typename B4, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2025 Event<void(A0, A1, A2, A3, A4)> event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4);
elessair 0:f269e3021894 2026
elessair 0:f269e3021894 2027 protected:
elessair 0:f269e3021894 2028 template <typename F>
elessair 0:f269e3021894 2029 friend class Event;
elessair 0:f269e3021894 2030 struct equeue _equeue;
elessair 0:f269e3021894 2031 mbed::Callback<void(int)> _update;
elessair 0:f269e3021894 2032
elessair 0:f269e3021894 2033 // Function attributes
elessair 0:f269e3021894 2034 template <typename F>
elessair 0:f269e3021894 2035 static void function_call(void *p) {
elessair 0:f269e3021894 2036 (*(F*)p)();
elessair 0:f269e3021894 2037 }
elessair 0:f269e3021894 2038
elessair 0:f269e3021894 2039 template <typename F>
elessair 0:f269e3021894 2040 static void function_dtor(void *p) {
elessair 0:f269e3021894 2041 ((F*)p)->~F();
elessair 0:f269e3021894 2042 }
elessair 0:f269e3021894 2043
elessair 0:f269e3021894 2044 // Context structures
elessair 0:f269e3021894 2045 template <typename F>
elessair 0:f269e3021894 2046 struct context00 {
elessair 0:f269e3021894 2047 F f;
elessair 0:f269e3021894 2048
elessair 0:f269e3021894 2049 context00(F f)
elessair 0:f269e3021894 2050 : f(f) {}
elessair 0:f269e3021894 2051
elessair 0:f269e3021894 2052 void operator()() {
elessair 0:f269e3021894 2053 f();
elessair 0:f269e3021894 2054 }
elessair 0:f269e3021894 2055 };
elessair 0:f269e3021894 2056
elessair 0:f269e3021894 2057 template <typename F, typename C0>
elessair 0:f269e3021894 2058 struct context10 {
elessair 0:f269e3021894 2059 F f; C0 c0;
elessair 0:f269e3021894 2060
elessair 0:f269e3021894 2061 context10(F f, C0 c0)
elessair 0:f269e3021894 2062 : f(f), c0(c0) {}
elessair 0:f269e3021894 2063
elessair 0:f269e3021894 2064 void operator()() {
elessair 0:f269e3021894 2065 f(c0);
elessair 0:f269e3021894 2066 }
elessair 0:f269e3021894 2067 };
elessair 0:f269e3021894 2068
elessair 0:f269e3021894 2069 template <typename F, typename C0, typename C1>
elessair 0:f269e3021894 2070 struct context20 {
elessair 0:f269e3021894 2071 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2072
elessair 0:f269e3021894 2073 context20(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2074 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2075
elessair 0:f269e3021894 2076 void operator()() {
elessair 0:f269e3021894 2077 f(c0, c1);
elessair 0:f269e3021894 2078 }
elessair 0:f269e3021894 2079 };
elessair 0:f269e3021894 2080
elessair 0:f269e3021894 2081 template <typename F, typename C0, typename C1, typename C2>
elessair 0:f269e3021894 2082 struct context30 {
elessair 0:f269e3021894 2083 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2084
elessair 0:f269e3021894 2085 context30(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2086 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2087
elessair 0:f269e3021894 2088 void operator()() {
elessair 0:f269e3021894 2089 f(c0, c1, c2);
elessair 0:f269e3021894 2090 }
elessair 0:f269e3021894 2091 };
elessair 0:f269e3021894 2092
elessair 0:f269e3021894 2093 template <typename F, typename C0, typename C1, typename C2, typename C3>
elessair 0:f269e3021894 2094 struct context40 {
elessair 0:f269e3021894 2095 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2096
elessair 0:f269e3021894 2097 context40(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2098 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2099
elessair 0:f269e3021894 2100 void operator()() {
elessair 0:f269e3021894 2101 f(c0, c1, c2, c3);
elessair 0:f269e3021894 2102 }
elessair 0:f269e3021894 2103 };
elessair 0:f269e3021894 2104
elessair 0:f269e3021894 2105 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4>
elessair 0:f269e3021894 2106 struct context50 {
elessair 0:f269e3021894 2107 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2108
elessair 0:f269e3021894 2109 context50(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2110 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2111
elessair 0:f269e3021894 2112 void operator()() {
elessair 0:f269e3021894 2113 f(c0, c1, c2, c3, c4);
elessair 0:f269e3021894 2114 }
elessair 0:f269e3021894 2115 };
elessair 0:f269e3021894 2116
elessair 0:f269e3021894 2117 template <typename F, typename A0>
elessair 0:f269e3021894 2118 struct context01 {
elessair 0:f269e3021894 2119 F f;
elessair 0:f269e3021894 2120
elessair 0:f269e3021894 2121 context01(F f)
elessair 0:f269e3021894 2122 : f(f) {}
elessair 0:f269e3021894 2123
elessair 0:f269e3021894 2124 void operator()(A0 a0) {
elessair 0:f269e3021894 2125 f(a0);
elessair 0:f269e3021894 2126 }
elessair 0:f269e3021894 2127 };
elessair 0:f269e3021894 2128
elessair 0:f269e3021894 2129 template <typename F, typename C0, typename A0>
elessair 0:f269e3021894 2130 struct context11 {
elessair 0:f269e3021894 2131 F f; C0 c0;
elessair 0:f269e3021894 2132
elessair 0:f269e3021894 2133 context11(F f, C0 c0)
elessair 0:f269e3021894 2134 : f(f), c0(c0) {}
elessair 0:f269e3021894 2135
elessair 0:f269e3021894 2136 void operator()(A0 a0) {
elessair 0:f269e3021894 2137 f(c0, a0);
elessair 0:f269e3021894 2138 }
elessair 0:f269e3021894 2139 };
elessair 0:f269e3021894 2140
elessair 0:f269e3021894 2141 template <typename F, typename C0, typename C1, typename A0>
elessair 0:f269e3021894 2142 struct context21 {
elessair 0:f269e3021894 2143 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2144
elessair 0:f269e3021894 2145 context21(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2146 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2147
elessair 0:f269e3021894 2148 void operator()(A0 a0) {
elessair 0:f269e3021894 2149 f(c0, c1, a0);
elessair 0:f269e3021894 2150 }
elessair 0:f269e3021894 2151 };
elessair 0:f269e3021894 2152
elessair 0:f269e3021894 2153 template <typename F, typename C0, typename C1, typename C2, typename A0>
elessair 0:f269e3021894 2154 struct context31 {
elessair 0:f269e3021894 2155 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2156
elessair 0:f269e3021894 2157 context31(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2158 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2159
elessair 0:f269e3021894 2160 void operator()(A0 a0) {
elessair 0:f269e3021894 2161 f(c0, c1, c2, a0);
elessair 0:f269e3021894 2162 }
elessair 0:f269e3021894 2163 };
elessair 0:f269e3021894 2164
elessair 0:f269e3021894 2165 template <typename F, typename C0, typename C1, typename C2, typename C3, typename A0>
elessair 0:f269e3021894 2166 struct context41 {
elessair 0:f269e3021894 2167 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2168
elessair 0:f269e3021894 2169 context41(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2170 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2171
elessair 0:f269e3021894 2172 void operator()(A0 a0) {
elessair 0:f269e3021894 2173 f(c0, c1, c2, c3, a0);
elessair 0:f269e3021894 2174 }
elessair 0:f269e3021894 2175 };
elessair 0:f269e3021894 2176
elessair 0:f269e3021894 2177 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0>
elessair 0:f269e3021894 2178 struct context51 {
elessair 0:f269e3021894 2179 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2180
elessair 0:f269e3021894 2181 context51(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2182 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2183
elessair 0:f269e3021894 2184 void operator()(A0 a0) {
elessair 0:f269e3021894 2185 f(c0, c1, c2, c3, c4, a0);
elessair 0:f269e3021894 2186 }
elessair 0:f269e3021894 2187 };
elessair 0:f269e3021894 2188
elessair 0:f269e3021894 2189 template <typename F, typename A0, typename A1>
elessair 0:f269e3021894 2190 struct context02 {
elessair 0:f269e3021894 2191 F f;
elessair 0:f269e3021894 2192
elessair 0:f269e3021894 2193 context02(F f)
elessair 0:f269e3021894 2194 : f(f) {}
elessair 0:f269e3021894 2195
elessair 0:f269e3021894 2196 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2197 f(a0, a1);
elessair 0:f269e3021894 2198 }
elessair 0:f269e3021894 2199 };
elessair 0:f269e3021894 2200
elessair 0:f269e3021894 2201 template <typename F, typename C0, typename A0, typename A1>
elessair 0:f269e3021894 2202 struct context12 {
elessair 0:f269e3021894 2203 F f; C0 c0;
elessair 0:f269e3021894 2204
elessair 0:f269e3021894 2205 context12(F f, C0 c0)
elessair 0:f269e3021894 2206 : f(f), c0(c0) {}
elessair 0:f269e3021894 2207
elessair 0:f269e3021894 2208 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2209 f(c0, a0, a1);
elessair 0:f269e3021894 2210 }
elessair 0:f269e3021894 2211 };
elessair 0:f269e3021894 2212
elessair 0:f269e3021894 2213 template <typename F, typename C0, typename C1, typename A0, typename A1>
elessair 0:f269e3021894 2214 struct context22 {
elessair 0:f269e3021894 2215 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2216
elessair 0:f269e3021894 2217 context22(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2218 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2219
elessair 0:f269e3021894 2220 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2221 f(c0, c1, a0, a1);
elessair 0:f269e3021894 2222 }
elessair 0:f269e3021894 2223 };
elessair 0:f269e3021894 2224
elessair 0:f269e3021894 2225 template <typename F, typename C0, typename C1, typename C2, typename A0, typename A1>
elessair 0:f269e3021894 2226 struct context32 {
elessair 0:f269e3021894 2227 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2228
elessair 0:f269e3021894 2229 context32(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2230 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2231
elessair 0:f269e3021894 2232 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2233 f(c0, c1, c2, a0, a1);
elessair 0:f269e3021894 2234 }
elessair 0:f269e3021894 2235 };
elessair 0:f269e3021894 2236
elessair 0:f269e3021894 2237 template <typename F, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1>
elessair 0:f269e3021894 2238 struct context42 {
elessair 0:f269e3021894 2239 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2240
elessair 0:f269e3021894 2241 context42(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2242 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2243
elessair 0:f269e3021894 2244 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2245 f(c0, c1, c2, c3, a0, a1);
elessair 0:f269e3021894 2246 }
elessair 0:f269e3021894 2247 };
elessair 0:f269e3021894 2248
elessair 0:f269e3021894 2249 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1>
elessair 0:f269e3021894 2250 struct context52 {
elessair 0:f269e3021894 2251 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2252
elessair 0:f269e3021894 2253 context52(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2254 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2255
elessair 0:f269e3021894 2256 void operator()(A0 a0, A1 a1) {
elessair 0:f269e3021894 2257 f(c0, c1, c2, c3, c4, a0, a1);
elessair 0:f269e3021894 2258 }
elessair 0:f269e3021894 2259 };
elessair 0:f269e3021894 2260
elessair 0:f269e3021894 2261 template <typename F, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2262 struct context03 {
elessair 0:f269e3021894 2263 F f;
elessair 0:f269e3021894 2264
elessair 0:f269e3021894 2265 context03(F f)
elessair 0:f269e3021894 2266 : f(f) {}
elessair 0:f269e3021894 2267
elessair 0:f269e3021894 2268 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2269 f(a0, a1, a2);
elessair 0:f269e3021894 2270 }
elessair 0:f269e3021894 2271 };
elessair 0:f269e3021894 2272
elessair 0:f269e3021894 2273 template <typename F, typename C0, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2274 struct context13 {
elessair 0:f269e3021894 2275 F f; C0 c0;
elessair 0:f269e3021894 2276
elessair 0:f269e3021894 2277 context13(F f, C0 c0)
elessair 0:f269e3021894 2278 : f(f), c0(c0) {}
elessair 0:f269e3021894 2279
elessair 0:f269e3021894 2280 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2281 f(c0, a0, a1, a2);
elessair 0:f269e3021894 2282 }
elessair 0:f269e3021894 2283 };
elessair 0:f269e3021894 2284
elessair 0:f269e3021894 2285 template <typename F, typename C0, typename C1, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2286 struct context23 {
elessair 0:f269e3021894 2287 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2288
elessair 0:f269e3021894 2289 context23(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2290 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2291
elessair 0:f269e3021894 2292 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2293 f(c0, c1, a0, a1, a2);
elessair 0:f269e3021894 2294 }
elessair 0:f269e3021894 2295 };
elessair 0:f269e3021894 2296
elessair 0:f269e3021894 2297 template <typename F, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2298 struct context33 {
elessair 0:f269e3021894 2299 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2300
elessair 0:f269e3021894 2301 context33(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2302 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2303
elessair 0:f269e3021894 2304 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2305 f(c0, c1, c2, a0, a1, a2);
elessair 0:f269e3021894 2306 }
elessair 0:f269e3021894 2307 };
elessair 0:f269e3021894 2308
elessair 0:f269e3021894 2309 template <typename F, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2310 struct context43 {
elessair 0:f269e3021894 2311 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2312
elessair 0:f269e3021894 2313 context43(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2314 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2315
elessair 0:f269e3021894 2316 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2317 f(c0, c1, c2, c3, a0, a1, a2);
elessair 0:f269e3021894 2318 }
elessair 0:f269e3021894 2319 };
elessair 0:f269e3021894 2320
elessair 0:f269e3021894 2321 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2>
elessair 0:f269e3021894 2322 struct context53 {
elessair 0:f269e3021894 2323 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2324
elessair 0:f269e3021894 2325 context53(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2326 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2327
elessair 0:f269e3021894 2328 void operator()(A0 a0, A1 a1, A2 a2) {
elessair 0:f269e3021894 2329 f(c0, c1, c2, c3, c4, a0, a1, a2);
elessair 0:f269e3021894 2330 }
elessair 0:f269e3021894 2331 };
elessair 0:f269e3021894 2332
elessair 0:f269e3021894 2333 template <typename F, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2334 struct context04 {
elessair 0:f269e3021894 2335 F f;
elessair 0:f269e3021894 2336
elessair 0:f269e3021894 2337 context04(F f)
elessair 0:f269e3021894 2338 : f(f) {}
elessair 0:f269e3021894 2339
elessair 0:f269e3021894 2340 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2341 f(a0, a1, a2, a3);
elessair 0:f269e3021894 2342 }
elessair 0:f269e3021894 2343 };
elessair 0:f269e3021894 2344
elessair 0:f269e3021894 2345 template <typename F, typename C0, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2346 struct context14 {
elessair 0:f269e3021894 2347 F f; C0 c0;
elessair 0:f269e3021894 2348
elessair 0:f269e3021894 2349 context14(F f, C0 c0)
elessair 0:f269e3021894 2350 : f(f), c0(c0) {}
elessair 0:f269e3021894 2351
elessair 0:f269e3021894 2352 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2353 f(c0, a0, a1, a2, a3);
elessair 0:f269e3021894 2354 }
elessair 0:f269e3021894 2355 };
elessair 0:f269e3021894 2356
elessair 0:f269e3021894 2357 template <typename F, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2358 struct context24 {
elessair 0:f269e3021894 2359 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2360
elessair 0:f269e3021894 2361 context24(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2362 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2363
elessair 0:f269e3021894 2364 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2365 f(c0, c1, a0, a1, a2, a3);
elessair 0:f269e3021894 2366 }
elessair 0:f269e3021894 2367 };
elessair 0:f269e3021894 2368
elessair 0:f269e3021894 2369 template <typename F, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2370 struct context34 {
elessair 0:f269e3021894 2371 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2372
elessair 0:f269e3021894 2373 context34(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2374 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2375
elessair 0:f269e3021894 2376 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2377 f(c0, c1, c2, a0, a1, a2, a3);
elessair 0:f269e3021894 2378 }
elessair 0:f269e3021894 2379 };
elessair 0:f269e3021894 2380
elessair 0:f269e3021894 2381 template <typename F, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2382 struct context44 {
elessair 0:f269e3021894 2383 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2384
elessair 0:f269e3021894 2385 context44(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2386 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2387
elessair 0:f269e3021894 2388 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2389 f(c0, c1, c2, c3, a0, a1, a2, a3);
elessair 0:f269e3021894 2390 }
elessair 0:f269e3021894 2391 };
elessair 0:f269e3021894 2392
elessair 0:f269e3021894 2393 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3>
elessair 0:f269e3021894 2394 struct context54 {
elessair 0:f269e3021894 2395 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2396
elessair 0:f269e3021894 2397 context54(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2398 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2399
elessair 0:f269e3021894 2400 void operator()(A0 a0, A1 a1, A2 a2, A3 a3) {
elessair 0:f269e3021894 2401 f(c0, c1, c2, c3, c4, a0, a1, a2, a3);
elessair 0:f269e3021894 2402 }
elessair 0:f269e3021894 2403 };
elessair 0:f269e3021894 2404
elessair 0:f269e3021894 2405 template <typename F, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2406 struct context05 {
elessair 0:f269e3021894 2407 F f;
elessair 0:f269e3021894 2408
elessair 0:f269e3021894 2409 context05(F f)
elessair 0:f269e3021894 2410 : f(f) {}
elessair 0:f269e3021894 2411
elessair 0:f269e3021894 2412 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2413 f(a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2414 }
elessair 0:f269e3021894 2415 };
elessair 0:f269e3021894 2416
elessair 0:f269e3021894 2417 template <typename F, typename C0, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2418 struct context15 {
elessair 0:f269e3021894 2419 F f; C0 c0;
elessair 0:f269e3021894 2420
elessair 0:f269e3021894 2421 context15(F f, C0 c0)
elessair 0:f269e3021894 2422 : f(f), c0(c0) {}
elessair 0:f269e3021894 2423
elessair 0:f269e3021894 2424 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2425 f(c0, a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2426 }
elessair 0:f269e3021894 2427 };
elessair 0:f269e3021894 2428
elessair 0:f269e3021894 2429 template <typename F, typename C0, typename C1, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2430 struct context25 {
elessair 0:f269e3021894 2431 F f; C0 c0; C1 c1;
elessair 0:f269e3021894 2432
elessair 0:f269e3021894 2433 context25(F f, C0 c0, C1 c1)
elessair 0:f269e3021894 2434 : f(f), c0(c0), c1(c1) {}
elessair 0:f269e3021894 2435
elessair 0:f269e3021894 2436 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2437 f(c0, c1, a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2438 }
elessair 0:f269e3021894 2439 };
elessair 0:f269e3021894 2440
elessair 0:f269e3021894 2441 template <typename F, typename C0, typename C1, typename C2, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2442 struct context35 {
elessair 0:f269e3021894 2443 F f; C0 c0; C1 c1; C2 c2;
elessair 0:f269e3021894 2444
elessair 0:f269e3021894 2445 context35(F f, C0 c0, C1 c1, C2 c2)
elessair 0:f269e3021894 2446 : f(f), c0(c0), c1(c1), c2(c2) {}
elessair 0:f269e3021894 2447
elessair 0:f269e3021894 2448 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2449 f(c0, c1, c2, a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2450 }
elessair 0:f269e3021894 2451 };
elessair 0:f269e3021894 2452
elessair 0:f269e3021894 2453 template <typename F, typename C0, typename C1, typename C2, typename C3, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2454 struct context45 {
elessair 0:f269e3021894 2455 F f; C0 c0; C1 c1; C2 c2; C3 c3;
elessair 0:f269e3021894 2456
elessair 0:f269e3021894 2457 context45(F f, C0 c0, C1 c1, C2 c2, C3 c3)
elessair 0:f269e3021894 2458 : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {}
elessair 0:f269e3021894 2459
elessair 0:f269e3021894 2460 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2461 f(c0, c1, c2, c3, a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2462 }
elessair 0:f269e3021894 2463 };
elessair 0:f269e3021894 2464
elessair 0:f269e3021894 2465 template <typename F, typename C0, typename C1, typename C2, typename C3, typename C4, typename A0, typename A1, typename A2, typename A3, typename A4>
elessair 0:f269e3021894 2466 struct context55 {
elessair 0:f269e3021894 2467 F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4;
elessair 0:f269e3021894 2468
elessair 0:f269e3021894 2469 context55(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4)
elessair 0:f269e3021894 2470 : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {}
elessair 0:f269e3021894 2471
elessair 0:f269e3021894 2472 void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) {
elessair 0:f269e3021894 2473 f(c0, c1, c2, c3, c4, a0, a1, a2, a3, a4);
elessair 0:f269e3021894 2474 }
elessair 0:f269e3021894 2475 };
elessair 0:f269e3021894 2476 };
elessair 0:f269e3021894 2477
elessair 0:f269e3021894 2478 }
elessair 0:f269e3021894 2479
elessair 0:f269e3021894 2480 #endif
elessair 0:f269e3021894 2481
elessair 0:f269e3021894 2482 /** @}*/