events: fix coding style

pull/8711/head
Martin Kojtal 2018-11-12 13:23:19 +00:00
parent 70b5772dc4
commit d3e51fc3a0
2 changed files with 21 additions and 6 deletions

View File

@ -266,8 +266,11 @@ public:
* } * }
* @endcode * @endcode
*/ */
// AStyle ignore, not handling correctly below
// *INDENT-OFF*
template <typename T, typename R, typename ...Args> template <typename T, typename R, typename ...Args>
int call(T *obj, R (T::*method)(Args ...args), Args ...args); int call(T *obj, R (T::*method)(Args ...args), Args ...args);
// *INDENT-ON*
/** Calls an event on the queue after a specified delay /** Calls an event on the queue after a specified delay
* *
@ -346,8 +349,11 @@ public:
* } * }
* @endcode * @endcode
*/ */
// AStyle ignore, not handling correctly below
// *INDENT-OFF*
template <typename T, typename R, typename ...Args> template <typename T, typename R, typename ...Args>
int call_in(int ms, T *obj, R (T::*method)(Args ...args), Args ...args); int call_in(int ms, T *obj, R (T::*method)(Args ...args), Args ...args);
// *INDENT-ON*
/** Calls an event on the queue periodically /** Calls an event on the queue periodically
* *
@ -440,8 +446,11 @@ public:
* } * }
* @endcode * @endcode
*/ */
// AStyle ignore, not handling correctly below
// *INDENT-OFF*
template <typename T, typename R, typename ...Args> template <typename T, typename R, typename ...Args>
int call_every(int ms, T *obj, R (T::*method)(Args ...args), Args ...args); int call_every(int ms, T *obj, R (T::*method)(Args ...args), Args ...args);
// *INDENT-ON*
/** Creates an event bound to the event queue /** Creates an event bound to the event queue
* *
@ -483,8 +492,11 @@ public:
* } * }
* @endcode * @endcode
*/ */
// AStyle ignore, not handling correctly below
// *INDENT-OFF*
template <typename R, typename ...BoundArgs, typename ...Args> template <typename R, typename ...BoundArgs, typename ...Args>
Event<void(Args...)> event(R (*func)(BoundArgs...), Args ...args); Event<void(Args...)> event(R (*func)(BoundArgs...), Args ...args);
// *INDENT-ON*
/** Creates an event bound to the event queue /** Creates an event bound to the event queue
* *
@ -528,8 +540,11 @@ public:
* } * }
* @endcode * @endcode
*/ */
// AStyle ignore, not handling correctly below
// *INDENT-OFF*
template <typename T, typename R, typename ...BoundArgs, typename ...ContextArgs, typename ...Args> template <typename T, typename R, typename ...BoundArgs, typename ...ContextArgs, typename ...Args>
Event<void(Args...)> event(T *obj, R (T::*method)(BoundArgs..., Args...), ContextArgs ...context_args); Event<void(Args...)> event(T *obj, R (T::*method)(BoundArgs..., Args...), ContextArgs ...context_args);
// *INDENT-ON*
/** Creates an event bound to the event queue /** Creates an event bound to the event queue
* *