From 8b379703d4c9abb22e18f91d160ce72fd3f519be Mon Sep 17 00:00:00 2001 From: Martin Kojtal Date: Fri, 3 Aug 2018 13:23:38 +0100 Subject: [PATCH] events: astyle fix --- events/Event.h | 1392 +++++++++++++++++++++++++++-------------- events/EventQueue.cpp | 27 +- events/EventQueue.h | 911 +++++++++++++++++---------- 3 files changed, 1502 insertions(+), 828 deletions(-) diff --git a/events/Event.h b/events/Event.h index a704409bf8..6032856cdc 100644 --- a/events/Event.h +++ b/events/Event.h @@ -48,9 +48,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -61,7 +62,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -69,7 +70,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -79,7 +81,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -90,7 +93,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -104,7 +108,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -114,7 +119,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -132,7 +138,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post() const { + int post() const + { if (!_event) { return 0; } @@ -144,7 +151,8 @@ public: /** Posts an event onto the underlying event queue, returning void * */ - void call() const { + void call() const + { MBED_UNUSED int id = post(); MBED_ASSERT(id); } @@ -152,7 +160,8 @@ public: /** Posts an event onto the underlying event queue, returning void * */ - void operator()() const { + void operator()() const + { return call(); } @@ -160,8 +169,9 @@ public: * * @param func Event to call passed as a void pointer */ - static void thunk(void *func) { - return static_cast(func)->call(); + static void thunk(void *func) + { + return static_cast(func)->call(); } /** Cancels the most recently posted event @@ -175,7 +185,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -198,14 +209,15 @@ private: // Event attributes template - static int event_post(struct event *e) { + static int event_post(struct event *e) + { typedef EventQueue::context00 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1)); + new (p) C(*(F *)(e + 1)); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -213,8 +225,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -227,7 +240,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context10(f, c0)); } @@ -240,7 +254,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context20(f, c0, c1)); } @@ -253,7 +268,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context30(f, c0, c1, c2)); } @@ -266,7 +282,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context40(f, c0, c1, c2, c3)); } @@ -279,7 +296,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context50(f, c0, c1, c2, c3, c4)); } @@ -287,7 +305,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -295,7 +314,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -303,7 +323,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -311,7 +332,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -319,7 +341,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -327,7 +350,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -335,7 +359,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -343,7 +368,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -351,7 +377,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -359,7 +386,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -367,7 +395,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -375,7 +404,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -383,7 +413,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -391,7 +422,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -399,7 +431,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -407,7 +440,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -415,7 +449,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -423,7 +458,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -431,7 +467,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -439,7 +476,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -462,9 +500,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -475,7 +514,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -483,7 +522,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -493,7 +533,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -504,7 +545,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -518,7 +560,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -528,7 +571,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -547,7 +591,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post(A0 a0) const { + int post(A0 a0) const + { if (!_event) { return 0; } @@ -560,7 +605,8 @@ public: * * @param a0 Argument to pass to the event */ - void call(A0 a0) const { + void call(A0 a0) const + { MBED_UNUSED int id = post(a0); MBED_ASSERT(id); } @@ -569,7 +615,8 @@ public: * * @param a0 Argument to pass to the event */ - void operator()(A0 a0) const { + void operator()(A0 a0) const + { return call(a0); } @@ -578,8 +625,9 @@ public: * @param func Event to call passed as a void pointer * @param a0 Argument to pass to the event */ - static void thunk(void *func, A0 a0) { - return static_cast(func)->call(a0); + static void thunk(void *func, A0 a0) + { + return static_cast(func)->call(a0); } /** Cancels the most recently posted event @@ -593,7 +641,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -616,14 +665,15 @@ private: // Event attributes template - static int event_post(struct event *e, A0 a0) { + static int event_post(struct event *e, A0 a0) + { typedef EventQueue::context10 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1), a0); + new (p) C(*(F *)(e + 1), a0); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -631,8 +681,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -645,7 +696,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context11(f, c0)); } @@ -658,7 +710,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context21(f, c0, c1)); } @@ -671,7 +724,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context31(f, c0, c1, c2)); } @@ -684,7 +738,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context41(f, c0, c1, c2, c3)); } @@ -697,7 +752,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context51(f, c0, c1, c2, c3, c4)); } @@ -705,7 +761,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, A0), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, A0), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -713,7 +770,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, A0) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -721,7 +779,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, A0) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -729,7 +788,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, A0) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -737,7 +797,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, A0), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -745,7 +806,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, A0) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -753,7 +815,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, A0) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -761,7 +824,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, A0) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -769,7 +833,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, A0), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -777,7 +842,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, A0) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -785,7 +851,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, A0) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -793,7 +860,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, A0) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -801,7 +869,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, A0), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -809,7 +878,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, A0) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -817,7 +887,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -825,7 +896,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -833,7 +905,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -841,7 +914,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -849,7 +923,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -857,7 +932,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -880,9 +956,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -893,7 +970,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -901,7 +978,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -911,7 +989,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -922,7 +1001,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -936,7 +1016,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -946,7 +1027,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -965,7 +1047,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post(A0 a0, A1 a1) const { + int post(A0 a0, A1 a1) const + { if (!_event) { return 0; } @@ -978,7 +1061,8 @@ public: * * @param a0,a1 Arguments to pass to the event */ - void call(A0 a0, A1 a1) const { + void call(A0 a0, A1 a1) const + { MBED_UNUSED int id = post(a0, a1); MBED_ASSERT(id); } @@ -987,7 +1071,8 @@ public: * * @param a0,a1 Arguments to pass to the event */ - void operator()(A0 a0, A1 a1) const { + void operator()(A0 a0, A1 a1) const + { return call(a0, a1); } @@ -996,8 +1081,9 @@ public: * @param func Event to call passed as a void pointer * @param a0,a1 Arguments to pass to the event */ - static void thunk(void *func, A0 a0, A1 a1) { - return static_cast(func)->call(a0, a1); + static void thunk(void *func, A0 a0, A1 a1) + { + return static_cast(func)->call(a0, a1); } /** Cancels the most recently posted event @@ -1011,7 +1097,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -1034,14 +1121,15 @@ private: // Event attributes template - static int event_post(struct event *e, A0 a0, A1 a1) { + static int event_post(struct event *e, A0 a0, A1 a1) + { typedef EventQueue::context20 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1), a0, a1); + new (p) C(*(F *)(e + 1), a0, a1); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -1049,8 +1137,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -1063,7 +1152,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context12(f, c0)); } @@ -1076,7 +1166,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context22(f, c0, c1)); } @@ -1089,7 +1180,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context32(f, c0, c1, c2)); } @@ -1102,7 +1194,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context42(f, c0, c1, c2, c3)); } @@ -1115,7 +1208,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context52(f, c0, c1, c2, c3, c4)); } @@ -1123,7 +1217,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, A0, A1), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1131,7 +1226,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, A0, A1) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1139,7 +1235,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, A0, A1) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1147,7 +1244,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, A0, A1) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1155,7 +1253,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, A0, A1), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1163,7 +1262,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, A0, A1) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1171,7 +1271,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, A0, A1) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1179,7 +1280,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, A0, A1) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1187,7 +1289,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, A0, A1), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1195,7 +1298,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, A0, A1) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1203,7 +1307,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1211,7 +1316,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1219,7 +1325,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1227,7 +1334,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1235,7 +1343,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1243,7 +1352,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1251,7 +1361,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1259,7 +1370,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1267,7 +1379,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1275,7 +1388,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -1298,9 +1412,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -1311,7 +1426,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -1319,7 +1434,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -1329,7 +1445,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -1340,7 +1457,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -1354,7 +1472,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -1364,7 +1483,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -1383,7 +1503,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post(A0 a0, A1 a1, A2 a2) const { + int post(A0 a0, A1 a1, A2 a2) const + { if (!_event) { return 0; } @@ -1396,7 +1517,8 @@ public: * * @param a0,a1,a2 Arguments to pass to the event */ - void call(A0 a0, A1 a1, A2 a2) const { + void call(A0 a0, A1 a1, A2 a2) const + { MBED_UNUSED int id = post(a0, a1, a2); MBED_ASSERT(id); } @@ -1405,7 +1527,8 @@ public: * * @param a0,a1,a2 Arguments to pass to the event */ - void operator()(A0 a0, A1 a1, A2 a2) const { + void operator()(A0 a0, A1 a1, A2 a2) const + { return call(a0, a1, a2); } @@ -1414,8 +1537,9 @@ public: * @param func Event to call passed as a void pointer * @param a0,a1,a2 Arguments to pass to the event */ - static void thunk(void *func, A0 a0, A1 a1, A2 a2) { - return static_cast(func)->call(a0, a1, a2); + static void thunk(void *func, A0 a0, A1 a1, A2 a2) + { + return static_cast(func)->call(a0, a1, a2); } /** Cancels the most recently posted event @@ -1429,7 +1553,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -1452,14 +1577,15 @@ private: // Event attributes template - static int event_post(struct event *e, A0 a0, A1 a1, A2 a2) { + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2) + { typedef EventQueue::context30 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1), a0, a1, a2); + new (p) C(*(F *)(e + 1), a0, a1, a2); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -1467,8 +1593,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -1481,7 +1608,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context13(f, c0)); } @@ -1494,7 +1622,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context23(f, c0, c1)); } @@ -1507,7 +1636,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context33(f, c0, c1, c2)); } @@ -1520,7 +1650,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context43(f, c0, c1, c2, c3)); } @@ -1533,7 +1664,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context53(f, c0, c1, c2, c3, c4)); } @@ -1541,7 +1673,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, A0, A1, A2), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1549,7 +1682,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, A0, A1, A2) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1557,7 +1691,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, A0, A1, A2) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1565,7 +1700,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, A0, A1, A2) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1573,7 +1709,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, A0, A1, A2), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1581,7 +1718,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, A0, A1, A2) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1589,7 +1727,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1597,7 +1736,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1605,7 +1745,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1613,7 +1754,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1621,7 +1763,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1629,7 +1772,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -1637,7 +1781,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1645,7 +1790,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1653,7 +1799,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1661,7 +1808,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -1669,7 +1817,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1677,7 +1826,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1685,7 +1835,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -1693,7 +1844,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -1716,9 +1868,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -1729,7 +1882,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -1737,7 +1890,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -1747,7 +1901,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -1758,7 +1913,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -1772,7 +1928,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -1782,7 +1939,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -1801,7 +1959,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post(A0 a0, A1 a1, A2 a2, A3 a3) const { + int post(A0 a0, A1 a1, A2 a2, A3 a3) const + { if (!_event) { return 0; } @@ -1814,7 +1973,8 @@ public: * * @param a0,a1,a2,a3 Arguments to pass to the event */ - void call(A0 a0, A1 a1, A2 a2, A3 a3) const { + void call(A0 a0, A1 a1, A2 a2, A3 a3) const + { MBED_UNUSED int id = post(a0, a1, a2, a3); MBED_ASSERT(id); } @@ -1823,7 +1983,8 @@ public: * * @param a0,a1,a2,a3 Arguments to pass to the event */ - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) const { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) const + { return call(a0, a1, a2, a3); } @@ -1832,8 +1993,9 @@ public: * @param func Event to call passed as a void pointer * @param a0,a1,a2,a3 Arguments to pass to the event */ - static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3) { - return static_cast(func)->call(a0, a1, a2, a3); + static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3) + { + return static_cast(func)->call(a0, a1, a2, a3); } /** Cancels the most recently posted event @@ -1847,7 +2009,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -1870,14 +2033,15 @@ private: // Event attributes template - static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3) { + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3) + { typedef EventQueue::context40 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1), a0, a1, a2, a3); + new (p) C(*(F *)(e + 1), a0, a1, a2, a3); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -1885,8 +2049,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -1899,7 +2064,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context14(f, c0)); } @@ -1912,7 +2078,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context24(f, c0, c1)); } @@ -1925,7 +2092,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context34(f, c0, c1, c2)); } @@ -1938,7 +2106,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context44(f, c0, c1, c2, c3)); } @@ -1951,7 +2120,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context54(f, c0, c1, c2, c3, c4)); } @@ -1959,7 +2129,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2, A3), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, A0, A1, A2, A3), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1967,7 +2138,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, A0, A1, A2, A3) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1975,7 +2147,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1983,7 +2156,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -1991,7 +2165,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -1999,7 +2174,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2007,7 +2183,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2015,7 +2192,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2023,7 +2201,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2031,7 +2210,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2039,7 +2219,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2047,7 +2228,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2055,7 +2237,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2063,7 +2246,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2071,7 +2255,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2079,7 +2264,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2087,7 +2273,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2095,7 +2282,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2103,7 +2291,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2111,7 +2300,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -2134,9 +2324,10 @@ public: * @param f Function to execute when the event is dispatched */ template - Event(EventQueue *q, F f) { + Event(EventQueue *q, F f) + { _event = static_cast( - equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); if (_event) { _event->equeue = &q->_equeue; @@ -2147,7 +2338,7 @@ public: _event->post = &Event::event_post; _event->dtor = &Event::event_dtor; - new (_event+1) F(f); + new (_event + 1) F(f); _event->ref = 1; } @@ -2155,7 +2346,8 @@ public: /** Copy constructor for events */ - Event(const Event &e) { + Event(const Event &e) + { _event = 0; if (e._event) { _event = e._event; @@ -2165,7 +2357,8 @@ public: /** Assignment operator for events */ - Event &operator=(const Event &that) { + Event &operator=(const Event &that) + { if (this != &that) { this->~Event(); new (this) Event(that); @@ -2176,7 +2369,8 @@ public: /** Destructor for events */ - ~Event() { + ~Event() + { if (_event) { _event->ref -= 1; if (_event->ref == 0) { @@ -2190,7 +2384,8 @@ public: * * @param delay Millisecond delay before dispatching the event */ - void delay(int delay) { + void delay(int delay) + { if (_event) { _event->delay = delay; } @@ -2200,7 +2395,8 @@ public: * * @param period Millisecond period for repeatedly dispatching an event */ - void period(int period) { + void period(int period) + { if (_event) { _event->period = period; } @@ -2219,7 +2415,8 @@ public: * be passed to EventQueue::cancel, or an id of 0 if * there is not enough memory to allocate the event. */ - int post(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + int post(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const + { if (!_event) { return 0; } @@ -2232,7 +2429,8 @@ public: * * @param a0,a1,a2,a3,a4 Arguments to pass to the event */ - void call(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + void call(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const + { MBED_UNUSED int id = post(a0, a1, a2, a3, a4); MBED_ASSERT(id); } @@ -2241,7 +2439,8 @@ public: * * @param a0,a1,a2,a3,a4 Arguments to pass to the event */ - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const + { return call(a0, a1, a2, a3, a4); } @@ -2250,8 +2449,9 @@ public: * @param func Event to call passed as a void pointer * @param a0,a1,a2,a3,a4 Arguments to pass to the event */ - static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { - return static_cast(func)->call(a0, a1, a2, a3, a4); + static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { + return static_cast(func)->call(a0, a1, a2, a3, a4); } /** Cancels the most recently posted event @@ -2265,7 +2465,8 @@ public: * function does not guarantee that the event will not execute after it * returns, as the event may have already begun executing. */ - void cancel() const { + void cancel() const + { if (_event) { equeue_cancel(_event->equeue, _event->id); } @@ -2288,14 +2489,15 @@ private: // Event attributes template - static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { typedef EventQueue::context50 C; void *p = equeue_alloc(e->equeue, sizeof(C)); if (!p) { return 0; } - new (p) C(*(F*)(e + 1), a0, a1, a2, a3, a4); + new (p) C(*(F *)(e + 1), a0, a1, a2, a3, a4); equeue_event_delay(p, e->delay); equeue_event_period(p, e->period); equeue_event_dtor(p, &EventQueue::function_dtor); @@ -2303,8 +2505,9 @@ private: } template - static void event_dtor(struct event *e) { - ((F*)(e + 1))->~F(); + static void event_dtor(struct event *e) + { + ((F *)(e + 1))->~F(); } public: @@ -2317,7 +2520,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0) { + Event(EventQueue *q, F f, C0 c0) + { new (this) Event(q, EventQueue::context15(f, c0)); } @@ -2330,7 +2534,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1) { + Event(EventQueue *q, F f, C0 c0, C1 c1) + { new (this) Event(q, EventQueue::context25(f, c0, c1)); } @@ -2343,7 +2548,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) + { new (this) Event(q, EventQueue::context35(f, c0, c1, c2)); } @@ -2356,7 +2562,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) + { new (this) Event(q, EventQueue::context45(f, c0, c1, c2, c3)); } @@ -2369,7 +2576,8 @@ public: * arguments to the underlying callback. */ template - Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + { new (this) Event(q, EventQueue::context55(f, c0, c1, c2, c3, c4)); } @@ -2377,7 +2585,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), B0 b0) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4), B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -2385,7 +2594,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, B0 b0) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -2393,7 +2603,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, B0 b0) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -2401,7 +2612,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, B0 b0) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const volatile, B0 b0) + { new (this) Event(q, mbed::callback(obj, method), b0); } @@ -2409,7 +2621,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), B0 b0, B1 b1) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4), B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2417,7 +2630,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, B0 b0, B1 b1) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2425,7 +2639,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2433,7 +2648,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1) + { new (this) Event(q, mbed::callback(obj, method), b0, b1); } @@ -2441,7 +2657,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2449,7 +2666,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2457,7 +2675,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2465,7 +2684,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); } @@ -2473,7 +2693,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2481,7 +2702,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2489,7 +2711,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2497,7 +2720,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); } @@ -2505,7 +2729,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2513,7 +2738,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2521,7 +2747,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } @@ -2529,7 +2756,8 @@ public: * @see Event::Event */ template - Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + Event(EventQueue *q, const volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) + { new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); } }; @@ -2541,1082 +2769,1298 @@ public: // Convenience functions declared here to avoid cyclic // dependency between Event and EventQueue template -Event EventQueue::event(R (*func)()) { +Event EventQueue::event(R(*func)()) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)()) { +Event EventQueue::event(T *obj, R(T::*method)()) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)() const) { +Event EventQueue::event(const T *obj, R(T::*method)() const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)() volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)() volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)() const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)() const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0), C0 c0) { +Event EventQueue::event(R(*func)(B0), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } template -Event EventQueue::event(R (*func)(A0)) { +Event EventQueue::event(R(*func)(A0)) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)(A0)) { +Event EventQueue::event(T *obj, R(T::*method)(A0)) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)(A0) const) { +Event EventQueue::event(const T *obj, R(T::*method)(A0) const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(A0) volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)(A0) volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(A0) const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(A0) const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0, A0), C0 c0) { +Event EventQueue::event(R(*func)(B0, A0), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, A0), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0, A0), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, A0) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, A0) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, A0) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, A0) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1, A0), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1, A0), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, A0), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, A0) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } template -Event EventQueue::event(R (*func)(A0, A1)) { +Event EventQueue::event(R(*func)(A0, A1)) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)(A0, A1)) { +Event EventQueue::event(T *obj, R(T::*method)(A0, A1)) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)(A0, A1) const) { +Event EventQueue::event(const T *obj, R(T::*method)(A0, A1) const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1) volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)(A0, A1) volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1) const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(A0, A1) const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0, A0, A1), C0 c0) { +Event EventQueue::event(R(*func)(B0, A0, A1), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0, A0, A1), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, A0, A1) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, A0, A1) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, A0, A1) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1, A0, A1), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1, A0, A1), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, A0, A1), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } template -Event EventQueue::event(R (*func)(A0, A1, A2)) { +Event EventQueue::event(R(*func)(A0, A1, A2)) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2)) { +Event EventQueue::event(T *obj, R(T::*method)(A0, A1, A2)) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2) const) { +Event EventQueue::event(const T *obj, R(T::*method)(A0, A1, A2) const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2) volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)(A0, A1, A2) volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0, A0, A1, A2), C0 c0) { +Event EventQueue::event(R(*func)(B0, A0, A1, A2), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0, A0, A1, A2), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, A0, A1, A2) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, A0, A1, A2) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } template -Event EventQueue::event(R (*func)(A0, A1, A2, A3)) { +Event EventQueue::event(R(*func)(A0, A1, A2, A3)) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2, A3)) { +Event EventQueue::event(T *obj, R(T::*method)(A0, A1, A2, A3)) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2, A3) const) { +Event EventQueue::event(const T *obj, R(T::*method)(A0, A1, A2, A3) const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(A0, A1, A2, A3) const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0, A0, A1, A2, A3), C0 c0) { +Event EventQueue::event(R(*func)(B0, A0, A1, A2, A3), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2, A3), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0, A0, A1, A2, A3), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, A0, A1, A2, A3) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } template -Event EventQueue::event(R (*func)(A0, A1, A2, A3, A4)) { +Event EventQueue::event(R(*func)(A0, A1, A2, A3, A4)) +{ return Event(this, func); } template -Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2, A3, A4)) { +Event EventQueue::event(T *obj, R(T::*method)(A0, A1, A2, A3, A4)) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const) { +Event EventQueue::event(const T *obj, R(T::*method)(A0, A1, A2, A3, A4) const) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile) { +Event EventQueue::event(volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile) +{ return Event(this, mbed::callback(obj, method)); } template -Event EventQueue::event(mbed::Callback cb) { +Event EventQueue::event(mbed::Callback cb) +{ return Event(this, cb); } template -Event EventQueue::event(R (*func)(B0, A0, A1, A2, A3, A4), C0 c0) { +Event EventQueue::event(R(*func)(B0, A0, A1, A2, A3, A4), C0 c0) +{ return Event(this, func, c0); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), C0 c0) { +Event EventQueue::event(T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4), C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0) +{ return Event(this, mbed::callback(obj, method), c0); } template -Event EventQueue::event(mbed::Callback cb, C0 c0) { +Event EventQueue::event(mbed::Callback cb, C0 c0) +{ return Event(this, cb, c0); } template -Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) { +Event EventQueue::event(R(*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) +{ return Event(this, func, c0, c1); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1) +{ return Event(this, mbed::callback(obj, method), c0, c1); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1) +{ return Event(this, cb, c0, c1); } template -Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(R(*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) +{ return Event(this, func, c0, c1, c2); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2) +{ return Event(this, cb, c0, c1, c2); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, func, c0, c1, c2, c3); } template -Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3) +{ return Event(this, cb, c0, c1, c2, c3); } template -Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, func, c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::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) { +Event EventQueue::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) +{ return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); } template -Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { +Event EventQueue::event(mbed::Callback cb, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) +{ return Event(this, cb, c0, c1, c2, c3, c4); } diff --git a/events/EventQueue.cpp b/events/EventQueue.cpp index 3abe8d93e8..fae08f2957 100644 --- a/events/EventQueue.cpp +++ b/events/EventQueue.cpp @@ -19,7 +19,8 @@ #include "mbed.h" -EventQueue::EventQueue(unsigned event_size, unsigned char *event_pointer) { +EventQueue::EventQueue(unsigned event_size, unsigned char *event_pointer) +{ if (!event_pointer) { equeue_create(&_equeue, event_size); } else { @@ -27,31 +28,38 @@ EventQueue::EventQueue(unsigned event_size, unsigned char *event_pointer) { } } -EventQueue::~EventQueue() { +EventQueue::~EventQueue() +{ equeue_destroy(&_equeue); } -void EventQueue::dispatch(int ms) { +void EventQueue::dispatch(int ms) +{ return equeue_dispatch(&_equeue, ms); } -void EventQueue::break_dispatch() { +void EventQueue::break_dispatch() +{ return equeue_break(&_equeue); } -unsigned EventQueue::tick() { +unsigned EventQueue::tick() +{ return equeue_tick(); } -void EventQueue::cancel(int id) { +void EventQueue::cancel(int id) +{ return equeue_cancel(&_equeue, id); } -int EventQueue::time_left(int id) { +int EventQueue::time_left(int id) +{ return equeue_timeleft(&_equeue, id); } -void EventQueue::background(Callback update) { +void EventQueue::background(Callback update) +{ _update = update; if (_update) { @@ -61,7 +69,8 @@ void EventQueue::background(Callback update) { } } -void EventQueue::chain(EventQueue *target) { +void EventQueue::chain(EventQueue *target) +{ if (target) { equeue_chain(&_equeue, &target->_equeue); } else { diff --git a/events/EventQueue.h b/events/EventQueue.h index 01ab02a6d5..3232327119 100644 --- a/events/EventQueue.h +++ b/events/EventQueue.h @@ -60,7 +60,7 @@ public: * @param buffer Pointer to buffer to use for events * (default to NULL) */ - EventQueue(unsigned size=EVENTS_QUEUE_SIZE, unsigned char *buffer=NULL); + EventQueue(unsigned size = EVENTS_QUEUE_SIZE, unsigned char *buffer = NULL); /** Destroy an EventQueue */ @@ -80,16 +80,19 @@ public: * value will dispatch events indefinitely * (default to -1) */ - void dispatch(int ms=-1); + void dispatch(int ms = -1); /** Dispatch events without a timeout * - * This is equivalent to EventQueue::dispatch with no arguments, but + * This is equivalent to EventQueue::dispatch with no arguments, but * avoids overload ambiguities when passed as a callback. * * @see EventQueue::dispatch */ - void dispatch_forever() { dispatch(); } + void dispatch_forever() + { + dispatch(); + } /** Break out of a running event loop * @@ -100,7 +103,7 @@ public: /** Millisecond counter * - * Returns the underlying tick of the event queue represented as the + * Returns the underlying tick of the event queue represented as the * number of milliseconds that have passed since an arbitrary point in * time. Intentionally overflows to 0 after 2^32-1. * @@ -196,7 +199,8 @@ public: * executing. */ template - int call(F f) { + int call(F f) + { void *p = equeue_alloc(&_equeue, sizeof(F)); if (!p) { return 0; @@ -213,7 +217,8 @@ public: * @param a0 Argument to pass to the callback */ template - int call(F f, A0 a0) { + int call(F f, A0 a0) + { return call(context10(f, a0)); } @@ -223,7 +228,8 @@ public: * @param a0,a1 Arguments to pass to the callback */ template - int call(F f, A0 a0, A1 a1) { + int call(F f, A0 a0, A1 a1) + { return call(context20(f, a0, a1)); } @@ -233,7 +239,8 @@ public: * @param a0,a1,a2 Arguments to pass to the callback */ template - int call(F f, A0 a0, A1 a1, A2 a2) { + int call(F f, A0 a0, A1 a1, A2 a2) + { return call(context30(f, a0, a1, a2)); } @@ -243,7 +250,8 @@ public: * @param a0,a1,a2,a3 Arguments to pass to the callback */ template - int call(F f, A0 a0, A1 a1, A2 a2, A3 a3) { + int call(F f, A0 a0, A1 a1, A2 a2, A3 a3) + { return call(context40(f, a0, a1, a2, a3)); } @@ -253,7 +261,8 @@ public: * @param a0,a1,a2,a3,a4 Arguments to pass to the callback */ template - int call(F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call(F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call(context50(f, a0, a1, a2, a3, a4)); } @@ -261,7 +270,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)()) { + int call(T *obj, R(T::*method)()) + { return call(mbed::callback(obj, method)); } @@ -269,7 +279,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)() const) { + int call(const T *obj, R(T::*method)() const) + { return call(mbed::callback(obj, method)); } @@ -277,7 +288,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)() volatile) { + int call(volatile T *obj, R(T::*method)() volatile) + { return call(mbed::callback(obj, method)); } @@ -285,7 +297,8 @@ public: * @see EventQueue::call */ template - int call(const volatile T *obj, R (T::*method)() const volatile) { + int call(const volatile T *obj, R(T::*method)() const volatile) + { return call(mbed::callback(obj, method)); } @@ -293,7 +306,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)(A0), A0 a0) { + int call(T *obj, R(T::*method)(A0), A0 a0) + { return call(mbed::callback(obj, method), a0); } @@ -301,7 +315,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)(A0) const, A0 a0) { + int call(const T *obj, R(T::*method)(A0) const, A0 a0) + { return call(mbed::callback(obj, method), a0); } @@ -309,7 +324,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + int call(volatile T *obj, R(T::*method)(A0) volatile, A0 a0) + { return call(mbed::callback(obj, method), a0); } @@ -317,7 +333,8 @@ public: * @see EventQueue::call */ template - int call(const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + int call(const volatile T *obj, R(T::*method)(A0) const volatile, A0 a0) + { return call(mbed::callback(obj, method), a0); } @@ -325,7 +342,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + int call(T *obj, R(T::*method)(A0, A1), A0 a0, A1 a1) + { return call(mbed::callback(obj, method), a0, a1); } @@ -333,7 +351,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + int call(const T *obj, R(T::*method)(A0, A1) const, A0 a0, A1 a1) + { return call(mbed::callback(obj, method), a0, a1); } @@ -341,7 +360,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + int call(volatile T *obj, R(T::*method)(A0, A1) volatile, A0 a0, A1 a1) + { return call(mbed::callback(obj, method), a0, a1); } @@ -349,7 +369,8 @@ public: * @see EventQueue::call */ template - int call(const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + int call(const volatile T *obj, R(T::*method)(A0, A1) const volatile, A0 a0, A1 a1) + { return call(mbed::callback(obj, method), a0, a1); } @@ -357,7 +378,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + int call(T *obj, R(T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) + { return call(mbed::callback(obj, method), a0, a1, a2); } @@ -365,7 +387,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + int call(const T *obj, R(T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) + { return call(mbed::callback(obj, method), a0, a1, a2); } @@ -373,7 +396,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + int call(volatile T *obj, R(T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) + { return call(mbed::callback(obj, method), a0, a1, a2); } @@ -381,7 +405,8 @@ public: * @see EventQueue::call */ template - int call(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + int call(const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) + { return call(mbed::callback(obj, method), a0, a1, a2); } @@ -389,7 +414,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + int call(T *obj, R(T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) + { return call(mbed::callback(obj, method), a0, a1, a2, a3); } @@ -397,7 +423,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + int call(const T *obj, R(T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) + { return call(mbed::callback(obj, method), a0, a1, a2, a3); } @@ -405,7 +432,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + int call(volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) + { return call(mbed::callback(obj, method), a0, a1, a2, a3); } @@ -413,7 +441,8 @@ public: * @see EventQueue::call */ template - int call(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + int call(const volatile T *obj, R(T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) + { return call(mbed::callback(obj, method), a0, a1, a2, a3); } @@ -421,7 +450,8 @@ public: * @see EventQueue::call */ template - int call(T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call(T *obj, R(T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -429,7 +459,8 @@ public: * @see EventQueue::call */ template - int call(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call(const T *obj, R(T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -437,7 +468,8 @@ public: * @see EventQueue::call */ template - int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call(volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -445,7 +477,8 @@ public: * @see EventQueue::call */ template - 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) { + 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) + { return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -464,7 +497,8 @@ public: * enough memory to allocate the event. */ template - int call_in(int ms, F f) { + int call_in(int ms, F f) + { void *p = equeue_alloc(&_equeue, sizeof(F)); if (!p) { return 0; @@ -483,7 +517,8 @@ public: * @param a0 Argument to pass to the callback */ template - int call_in(int ms, F f, A0 a0) { + int call_in(int ms, F f, A0 a0) + { return call_in(ms, context10(f, a0)); } @@ -494,7 +529,8 @@ public: * @param a0,a1 Arguments to pass to the callback */ template - int call_in(int ms, F f, A0 a0, A1 a1) { + int call_in(int ms, F f, A0 a0, A1 a1) + { return call_in(ms, context20(f, a0, a1)); } @@ -505,7 +541,8 @@ public: * @param a0,a1,a2 Arguments to pass to the callback */ template - int call_in(int ms, F f, A0 a0, A1 a1, A2 a2) { + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2) + { return call_in(ms, context30(f, a0, a1, a2)); } @@ -516,7 +553,8 @@ public: * @param a0,a1,a2,a3 Arguments to pass to the callback */ template - int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_in(ms, context40(f, a0, a1, a2, a3)); } @@ -527,7 +565,8 @@ public: * @param a0,a1,a2,a3,a4 Arguments to pass to the callback */ template - int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call_in(ms, context50(f, a0, a1, a2, a3, a4)); } @@ -535,7 +574,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, T *obj, R (T::*method)()) { + int call_in(int ms, T *obj, R(T::*method)()) + { return call_in(ms, mbed::callback(obj, method)); } @@ -543,7 +583,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const T *obj, R (T::*method)() const) { + int call_in(int ms, const T *obj, R(T::*method)() const) + { return call_in(ms, mbed::callback(obj, method)); } @@ -551,7 +592,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, volatile T *obj, R (T::*method)() volatile) { + int call_in(int ms, volatile T *obj, R(T::*method)() volatile) + { return call_in(ms, mbed::callback(obj, method)); } @@ -559,7 +601,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const volatile T *obj, R (T::*method)() const volatile) { + int call_in(int ms, const volatile T *obj, R(T::*method)() const volatile) + { return call_in(ms, mbed::callback(obj, method)); } @@ -567,7 +610,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, T *obj, R (T::*method)(A0), A0 a0) { + int call_in(int ms, T *obj, R(T::*method)(A0), A0 a0) + { return call_in(ms, mbed::callback(obj, method), a0); } @@ -575,7 +619,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) { + int call_in(int ms, const T *obj, R(T::*method)(A0) const, A0 a0) + { return call_in(ms, mbed::callback(obj, method), a0); } @@ -583,7 +628,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + int call_in(int ms, volatile T *obj, R(T::*method)(A0) volatile, A0 a0) + { return call_in(ms, mbed::callback(obj, method), a0); } @@ -591,7 +637,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + int call_in(int ms, const volatile T *obj, R(T::*method)(A0) const volatile, A0 a0) + { return call_in(ms, mbed::callback(obj, method), a0); } @@ -599,7 +646,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + int call_in(int ms, T *obj, R(T::*method)(A0, A1), A0 a0, A1 a1) + { return call_in(ms, mbed::callback(obj, method), a0, a1); } @@ -607,7 +655,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + int call_in(int ms, const T *obj, R(T::*method)(A0, A1) const, A0 a0, A1 a1) + { return call_in(ms, mbed::callback(obj, method), a0, a1); } @@ -615,7 +664,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + int call_in(int ms, volatile T *obj, R(T::*method)(A0, A1) volatile, A0 a0, A1 a1) + { return call_in(ms, mbed::callback(obj, method), a0, a1); } @@ -623,7 +673,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + int call_in(int ms, const volatile T *obj, R(T::*method)(A0, A1) const volatile, A0 a0, A1 a1) + { return call_in(ms, mbed::callback(obj, method), a0, a1); } @@ -631,7 +682,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + int call_in(int ms, T *obj, R(T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -639,7 +691,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + int call_in(int ms, const T *obj, R(T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -647,7 +700,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + int call_in(int ms, volatile T *obj, R(T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -655,7 +709,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + int call_in(int ms, const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -663,7 +718,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + int call_in(int ms, T *obj, R(T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -671,7 +727,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_in(int ms, const T *obj, R(T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -679,7 +736,8 @@ public: * @see EventQueue::call_in */ template - int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_in(int ms, volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -687,7 +745,8 @@ public: * @see EventQueue::call_in */ template - 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) { + 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) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -695,7 +754,8 @@ public: * @see EventQueue::call_in */ template - 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) { + 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) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -703,7 +763,8 @@ public: * @see EventQueue::call_in */ template - 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) { + 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) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -711,7 +772,8 @@ public: * @see EventQueue::call_in */ template - 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) { + 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) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -719,7 +781,8 @@ public: * @see EventQueue::call_in */ template - 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) { + 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) + { return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -741,7 +804,8 @@ public: * enough memory to allocate the event. */ template - int call_every(int ms, F f) { + int call_every(int ms, F f) + { void *p = equeue_alloc(&_equeue, sizeof(F)); if (!p) { return 0; @@ -761,7 +825,8 @@ public: * @param ms Period of the event in milliseconds */ template - int call_every(int ms, F f, A0 a0) { + int call_every(int ms, F f, A0 a0) + { return call_every(ms, context10(f, a0)); } @@ -772,7 +837,8 @@ public: * @param ms Period of the event in milliseconds */ template - int call_every(int ms, F f, A0 a0, A1 a1) { + int call_every(int ms, F f, A0 a0, A1 a1) + { return call_every(ms, context20(f, a0, a1)); } @@ -783,7 +849,8 @@ public: * @param ms Period of the event in milliseconds */ template - int call_every(int ms, F f, A0 a0, A1 a1, A2 a2) { + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2) + { return call_every(ms, context30(f, a0, a1, a2)); } @@ -794,7 +861,8 @@ public: * @param ms Period of the event in milliseconds */ template - int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_every(ms, context40(f, a0, a1, a2, a3)); } @@ -805,7 +873,8 @@ public: * @param ms Period of the event in milliseconds */ template - int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { return call_every(ms, context50(f, a0, a1, a2, a3, a4)); } @@ -813,7 +882,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, T *obj, R (T::*method)()) { + int call_every(int ms, T *obj, R(T::*method)()) + { return call_every(ms, mbed::callback(obj, method)); } @@ -821,7 +891,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const T *obj, R (T::*method)() const) { + int call_every(int ms, const T *obj, R(T::*method)() const) + { return call_every(ms, mbed::callback(obj, method)); } @@ -829,7 +900,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, volatile T *obj, R (T::*method)() volatile) { + int call_every(int ms, volatile T *obj, R(T::*method)() volatile) + { return call_every(ms, mbed::callback(obj, method)); } @@ -837,7 +909,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const volatile T *obj, R (T::*method)() const volatile) { + int call_every(int ms, const volatile T *obj, R(T::*method)() const volatile) + { return call_every(ms, mbed::callback(obj, method)); } @@ -845,7 +918,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, T *obj, R (T::*method)(A0), A0 a0) { + int call_every(int ms, T *obj, R(T::*method)(A0), A0 a0) + { return call_every(ms, mbed::callback(obj, method), a0); } @@ -853,7 +927,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) { + int call_every(int ms, const T *obj, R(T::*method)(A0) const, A0 a0) + { return call_every(ms, mbed::callback(obj, method), a0); } @@ -861,7 +936,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + int call_every(int ms, volatile T *obj, R(T::*method)(A0) volatile, A0 a0) + { return call_every(ms, mbed::callback(obj, method), a0); } @@ -869,7 +945,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + int call_every(int ms, const volatile T *obj, R(T::*method)(A0) const volatile, A0 a0) + { return call_every(ms, mbed::callback(obj, method), a0); } @@ -877,7 +954,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + int call_every(int ms, T *obj, R(T::*method)(A0, A1), A0 a0, A1 a1) + { return call_every(ms, mbed::callback(obj, method), a0, a1); } @@ -885,7 +963,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + int call_every(int ms, const T *obj, R(T::*method)(A0, A1) const, A0 a0, A1 a1) + { return call_every(ms, mbed::callback(obj, method), a0, a1); } @@ -893,7 +972,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + int call_every(int ms, volatile T *obj, R(T::*method)(A0, A1) volatile, A0 a0, A1 a1) + { return call_every(ms, mbed::callback(obj, method), a0, a1); } @@ -901,7 +981,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + int call_every(int ms, const volatile T *obj, R(T::*method)(A0, A1) const volatile, A0 a0, A1 a1) + { return call_every(ms, mbed::callback(obj, method), a0, a1); } @@ -909,7 +990,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + int call_every(int ms, T *obj, R(T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -917,7 +999,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + int call_every(int ms, const T *obj, R(T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -925,7 +1008,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + int call_every(int ms, volatile T *obj, R(T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -933,7 +1017,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + int call_every(int ms, const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2); } @@ -941,7 +1026,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + int call_every(int ms, T *obj, R(T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -949,7 +1035,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_every(int ms, const T *obj, R(T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -957,7 +1044,8 @@ public: * @see EventQueue::call_every */ template - int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + int call_every(int ms, volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -965,7 +1053,8 @@ public: * @see EventQueue::call_every */ template - 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) { + 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) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); } @@ -973,7 +1062,8 @@ public: * @see EventQueue::call_every */ template - 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) { + 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) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -981,7 +1071,8 @@ public: * @see EventQueue::call_every */ template - 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) { + 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) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -989,7 +1080,8 @@ public: * @see EventQueue::call_every */ template - 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) { + 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) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -997,7 +1089,8 @@ public: * @see EventQueue::call_every */ template - 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) { + 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) + { return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); } @@ -1011,31 +1104,31 @@ public: * @return Event that will dispatch on the specific queue */ template - Event event(R (*func)()); + Event event(R(*func)()); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)()); + Event event(T *obj, R(T::*method)()); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)() const); + Event event(const T *obj, R(T::*method)() const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)() volatile); + Event event(volatile T *obj, R(T::*method)() volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)() const volatile); + Event event(const volatile T *obj, R(T::*method)() const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1047,31 +1140,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0), C0 c0); + Event event(R(*func)(B0), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0), C0 c0); + Event event(T *obj, R(T::*method)(B0), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1083,31 +1176,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1), C0 c0, C1 c1); + Event event(R(*func)(B0, B1), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1119,31 +1212,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1155,31 +1248,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1191,31 +1284,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1227,31 +1320,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(A0)); + Event event(R(*func)(A0)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(A0)); + Event event(T *obj, R(T::*method)(A0)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(A0) const); + Event event(const T *obj, R(T::*method)(A0) const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(A0) volatile); + Event event(volatile T *obj, R(T::*method)(A0) volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(A0) const volatile); + Event event(const volatile T *obj, R(T::*method)(A0) const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1263,31 +1356,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, A0), C0 c0); + Event event(R(*func)(B0, A0), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, A0), C0 c0); + Event event(T *obj, R(T::*method)(B0, A0), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, A0) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0, A0) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, A0) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0, A0) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, A0) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0, A0) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1299,31 +1392,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, A0), C0 c0, C1 c1); + Event event(R(*func)(B0, B1, A0), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, A0), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1, A0), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, A0) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1, A0) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1335,31 +1428,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1371,31 +1464,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1407,31 +1500,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1443,31 +1536,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(A0, A1)); + Event event(R(*func)(A0, A1)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(A0, A1)); + Event event(T *obj, R(T::*method)(A0, A1)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(A0, A1) const); + Event event(const T *obj, R(T::*method)(A0, A1) const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(A0, A1) volatile); + Event event(volatile T *obj, R(T::*method)(A0, A1) volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(A0, A1) const volatile); + Event event(const volatile T *obj, R(T::*method)(A0, A1) const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1479,31 +1572,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, A0, A1), C0 c0); + Event event(R(*func)(B0, A0, A1), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, A0, A1), C0 c0); + Event event(T *obj, R(T::*method)(B0, A0, A1), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, A0, A1) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0, A0, A1) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, A0, A1) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0, A0, A1) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0, A0, A1) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1515,31 +1608,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, A0, A1), C0 c0, C1 c1); + Event event(R(*func)(B0, B1, A0, A1), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, A0, A1), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1, A0, A1), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1551,31 +1644,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1587,31 +1680,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1623,31 +1716,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1659,31 +1752,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(A0, A1, A2)); + Event event(R(*func)(A0, A1, A2)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(A0, A1, A2)); + Event event(T *obj, R(T::*method)(A0, A1, A2)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(A0, A1, A2) const); + Event event(const T *obj, R(T::*method)(A0, A1, A2) const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(A0, A1, A2) volatile); + Event event(volatile T *obj, R(T::*method)(A0, A1, A2) volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile); + Event event(const volatile T *obj, R(T::*method)(A0, A1, A2) const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1695,31 +1788,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, A0, A1, A2), C0 c0); + Event event(R(*func)(B0, A0, A1, A2), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, A0, A1, A2), C0 c0); + Event event(T *obj, R(T::*method)(B0, A0, A1, A2), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, A0, A1, A2) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0, A0, A1, A2) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0, A0, A1, A2) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1731,31 +1824,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1); + Event event(R(*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1767,31 +1860,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1803,31 +1896,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1839,31 +1932,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1875,31 +1968,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(A0, A1, A2, A3)); + Event event(R(*func)(A0, A1, A2, A3)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(A0, A1, A2, A3)); + Event event(T *obj, R(T::*method)(A0, A1, A2, A3)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(A0, A1, A2, A3) const); + Event event(const T *obj, R(T::*method)(A0, A1, A2, A3) const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile); + Event event(volatile T *obj, R(T::*method)(A0, A1, A2, A3) volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile); + Event event(const volatile T *obj, R(T::*method)(A0, A1, A2, A3) const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1911,31 +2004,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, A0, A1, A2, A3), C0 c0); + Event event(R(*func)(B0, A0, A1, A2, A3), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, A0, A1, A2, A3), C0 c0); + Event event(T *obj, R(T::*method)(B0, A0, A1, A2, A3), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0, A0, A1, A2, A3) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1947,31 +2040,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); + Event event(R(*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -1983,31 +2076,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2019,31 +2112,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(const T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2055,31 +2148,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2091,31 +2184,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(A0, A1, A2, A3, A4)); + Event event(R(*func)(A0, A1, A2, A3, A4)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(A0, A1, A2, A3, A4)); + Event event(T *obj, R(T::*method)(A0, A1, A2, A3, A4)); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const); + Event event(const T *obj, R(T::*method)(A0, A1, A2, A3, A4) const); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile); + Event event(volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile); + Event event(const volatile T *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2127,31 +2220,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, A0, A1, A2, A3, A4), C0 c0); + Event event(R(*func)(B0, A0, A1, A2, A3, A4), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), C0 c0); + Event event(T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4), C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0); + Event event(const T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0); + Event event(volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0); + Event event(const volatile T *obj, R(T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2163,31 +2256,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); + Event event(R(*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); + Event event(T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1); + Event event(const T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1); + Event event(volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1); + Event event(const volatile T *obj, R(T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2199,31 +2292,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); + Event event(R(*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); + Event event(T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2); + Event event(const T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2); + Event event(volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2); + Event event(const volatile T *obj, R(T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2235,31 +2328,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(R(*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); + Event event(T *obj, R(T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2271,31 +2364,31 @@ public: * @see EventQueue::event */ template - Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + Event event(R(*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event */ template - Event 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); + Event 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); /** Creates an event bound to the event queue * @see EventQueue::event @@ -2311,13 +2404,15 @@ protected: // Function attributes template - static void function_call(void *p) { - (*(F*)p)(); + static void function_call(void *p) + { + (*(F *)p)(); } template - static void function_dtor(void *p) { - ((F*)p)->~F(); + static void function_dtor(void *p) + { + ((F *)p)->~F(); } // Context structures @@ -2328,67 +2423,88 @@ protected: context00(F f) : f(f) {} - void operator()() { + void operator()() + { f(); } }; template struct context10 { - F f; C0 c0; + F f; + C0 c0; context10(F f, C0 c0) : f(f), c0(c0) {} - void operator()() { + void operator()() + { f(c0); } }; template struct context20 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context20(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()() { + void operator()() + { f(c0, c1); } }; template struct context30 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context30(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()() { + void operator()() + { f(c0, c1, c2); } }; template struct context40 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context40(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()() { + void operator()() + { f(c0, c1, c2, c3); } }; template struct context50 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context50(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()() { + void operator()() + { f(c0, c1, c2, c3, c4); } }; @@ -2400,67 +2516,88 @@ protected: context01(F f) : f(f) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(a0); } }; template struct context11 { - F f; C0 c0; + F f; + C0 c0; context11(F f, C0 c0) : f(f), c0(c0) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(c0, a0); } }; template struct context21 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context21(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(c0, c1, a0); } }; template struct context31 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context31(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(c0, c1, c2, a0); } }; template struct context41 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context41(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(c0, c1, c2, c3, a0); } }; template struct context51 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context51(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()(A0 a0) { + void operator()(A0 a0) + { f(c0, c1, c2, c3, c4, a0); } }; @@ -2472,67 +2609,88 @@ protected: context02(F f) : f(f) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(a0, a1); } }; template struct context12 { - F f; C0 c0; + F f; + C0 c0; context12(F f, C0 c0) : f(f), c0(c0) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(c0, a0, a1); } }; template struct context22 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context22(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(c0, c1, a0, a1); } }; template struct context32 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context32(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(c0, c1, c2, a0, a1); } }; template struct context42 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context42(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(c0, c1, c2, c3, a0, a1); } }; template struct context52 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context52(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()(A0 a0, A1 a1) { + void operator()(A0 a0, A1 a1) + { f(c0, c1, c2, c3, c4, a0, a1); } }; @@ -2544,67 +2702,88 @@ protected: context03(F f) : f(f) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(a0, a1, a2); } }; template struct context13 { - F f; C0 c0; + F f; + C0 c0; context13(F f, C0 c0) : f(f), c0(c0) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(c0, a0, a1, a2); } }; template struct context23 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context23(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(c0, c1, a0, a1, a2); } }; template struct context33 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context33(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(c0, c1, c2, a0, a1, a2); } }; template struct context43 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context43(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(c0, c1, c2, c3, a0, a1, a2); } }; template struct context53 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context53(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()(A0 a0, A1 a1, A2 a2) { + void operator()(A0 a0, A1 a1, A2 a2) + { f(c0, c1, c2, c3, c4, a0, a1, a2); } }; @@ -2616,67 +2795,88 @@ protected: context04(F f) : f(f) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(a0, a1, a2, a3); } }; template struct context14 { - F f; C0 c0; + F f; + C0 c0; context14(F f, C0 c0) : f(f), c0(c0) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(c0, a0, a1, a2, a3); } }; template struct context24 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context24(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(c0, c1, a0, a1, a2, a3); } }; template struct context34 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context34(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(c0, c1, c2, a0, a1, a2, a3); } }; template struct context44 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context44(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(c0, c1, c2, c3, a0, a1, a2, a3); } }; template struct context54 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context54(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) + { f(c0, c1, c2, c3, c4, a0, a1, a2, a3); } }; @@ -2688,67 +2888,88 @@ protected: context05(F f) : f(f) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(a0, a1, a2, a3, a4); } }; template struct context15 { - F f; C0 c0; + F f; + C0 c0; context15(F f, C0 c0) : f(f), c0(c0) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(c0, a0, a1, a2, a3, a4); } }; template struct context25 { - F f; C0 c0; C1 c1; + F f; + C0 c0; + C1 c1; context25(F f, C0 c0, C1 c1) : f(f), c0(c0), c1(c1) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(c0, c1, a0, a1, a2, a3, a4); } }; template struct context35 { - F f; C0 c0; C1 c1; C2 c2; + F f; + C0 c0; + C1 c1; + C2 c2; context35(F f, C0 c0, C1 c1, C2 c2) : f(f), c0(c0), c1(c1), c2(c2) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(c0, c1, c2, a0, a1, a2, a3, a4); } }; template struct context45 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; context45(F f, C0 c0, C1 c1, C2 c2, C3 c3) : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(c0, c1, c2, c3, a0, a1, a2, a3, a4); } }; template struct context55 { - F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + F f; + C0 c0; + C1 c1; + C2 c2; + C3 c3; + C4 c4; context55(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} - void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) + { f(c0, c1, c2, c3, c4, a0, a1, a2, a3, a4); } };