WORKS
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
Callback< R(A0, A1, A2, A3, A4)> Class Template Reference
Callback class based on template specialization. More...
#include <Callback.h>
Public Member Functions | |
| Callback (R(*func)(A0, A1, A2, A3, A4)=0) | |
| Create a Callback with a static function. | |
| Callback (void *obj, R(*func)(void *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const void *obj, R(*func)(const void *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (volatile void *obj, R(*func)(volatile void *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(*func)(T *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (const T *obj, R(*func)(const T *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (volatile T *obj, R(*func)(volatile T *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (const volatile T *obj, R(*func)(const volatile T *, A0, A1, A2, A3, A4)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(T::*func)(A0, A1, A2, A3, A4)) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const T *obj, R(T::*func)(A0, A1, A2, A3, A4) const) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) volatile) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) const volatile) | |
| Create a Callback with a member function. | |
| void | attach (R(*func)(A0, A1, A2, A3, A4)) |
| Attach a static function. | |
| void | attach (const Callback< R(A0, A1, A2, A3, A4)> &func) |
| Attach a Callback. | |
| void | attach (void *obj, R(*func)(void *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| void | attach (const void *obj, R(*func)(const void *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| void | attach (volatile void *obj, R(*func)(volatile void *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| void | attach (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(*func)(T *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (const T *obj, R(*func)(const T *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(*func)(volatile T *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (const volatile T *obj, R(*func)(const volatile T *, A0, A1, A2, A3, A4)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(T::*func)(A0, A1, A2, A3, A4)) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const T *obj, R(T::*func)(A0, A1, A2, A3, A4) const) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) volatile) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const volatile T *obj, R(T::*func)(A0, A1, A2, A3, A4) const volatile) |
| Attach a member function. | |
| R | call (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const |
| Call the attached function. | |
| R | operator() (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const |
| Call the attached function. | |
| operator bool () const | |
| Test if function has been attached. | |
Static Public Member Functions | |
| static R | thunk (void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) |
| Static thunk for passing as C-style function. | |
Friends | |
| bool | operator== (const Callback &l, const Callback &r) |
| Test for equality. | |
| bool | operator!= (const Callback &l, const Callback &r) |
| Test for inequality. | |
Detailed Description
template<typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
class mbed::Callback< R(A0, A1, A2, A3, A4)>
Callback class based on template specialization.
Synchronization level: Not protected
Definition at line 2183 of file Callback.h.
Constructor & Destructor Documentation
| Callback | ( | R(*)(A0, A1, A2, A3, A4) | func = 0 ) |
Create a Callback with a static function.
- Parameters:
-
func Static function to attach
Definition at line 2188 of file Callback.h.
| Callback | ( | void * | obj, |
| R(*)(void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2196 of file Callback.h.
| Callback | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2204 of file Callback.h.
| Callback | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2212 of file Callback.h.
| Callback | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2220 of file Callback.h.
| Callback | ( | T * | obj, |
| R(*)(T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2229 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2238 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2247 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a static function and bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2256 of file Callback.h.
| Callback | ( | T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) | func | ||
| ) |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2265 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) const | func | ||
| ) |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2274 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) volatile | func | ||
| ) |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2283 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) const volatile | func | ||
| ) |
Create a Callback with a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2292 of file Callback.h.
Member Function Documentation
| void attach | ( | R(*)(A0, A1, A2, A3, A4) | func ) |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 2299 of file Callback.h.
| void attach | ( | const Callback< R(A0, A1, A2, A3, A4)> & | func ) |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 2316 of file Callback.h.
| void attach | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2345 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2419 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2438 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) const volatile | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2536 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) volatile | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2516 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) const | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2496 of file Callback.h.
| void attach | ( | T * | obj, |
| R(T::*)(A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2476 of file Callback.h.
| void attach | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2363 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2457 of file Callback.h.
| void attach | ( | void * | obj, |
| R(*)(void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2327 of file Callback.h.
| void attach | ( | T * | obj, |
| R(*)(T *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2400 of file Callback.h.
| void attach | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2, A3, A4) | func | ||
| ) |
Attach a static function with a bound pointer.
- Parameters:
-
obj Pointer to object to bind to function func Static function to attach
Definition at line 2381 of file Callback.h.
| R call | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3, | ||
| A4 | a4 | ||
| ) | const |
Call the attached function.
Definition at line 2553 of file Callback.h.
| operator bool | ( | void | ) | const |
Test if function has been attached.
Definition at line 2566 of file Callback.h.
| R operator() | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3, | ||
| A4 | a4 | ||
| ) | const |
Call the attached function.
Definition at line 2560 of file Callback.h.
| static R thunk | ( | void * | func, |
| A0 | a0, | ||
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3, | ||
| A4 | a4 | ||
| ) | [static] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 2585 of file Callback.h.
Friends And Related Function Documentation
| bool operator!= | ( | const Callback< R(A0, A1, A2, A3, A4)> & | l, |
| const Callback< R(A0, A1, A2, A3, A4)> & | r | ||
| ) | [friend] |
Test for inequality.
Definition at line 2578 of file Callback.h.
| bool operator== | ( | const Callback< R(A0, A1, A2, A3, A4)> & | l, |
| const Callback< R(A0, A1, A2, A3, A4)> & | r | ||
| ) | [friend] |
Test for equality.
Definition at line 2572 of file Callback.h.
Generated on Tue Jul 12 2022 12:29:13 by
1.7.2
