dhgdh
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
Callback< R(A0, A1, A2, A3)> Class Template Reference
Callback class based on template specialization. More...
#include <Callback.h>
Public Member Functions | |
| Callback (R(*func)(A0, A1, A2, A3)=0) | |
| Create a Callback with a static function. | |
| Callback (void *obj, R(*func)(void *, A0, A1, A2, A3)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const void *obj, R(*func)(const void *, A0, A1, A2, A3)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (volatile void *obj, R(*func)(volatile void *, A0, A1, A2, A3)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2, A3)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(*func)(T *, A0, A1, A2, A3)) | |
| 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)) | |
| 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)) | |
| 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)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(T::*func)(A0, A1, A2, A3)) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const T *obj, R(T::*func)(A0, A1, A2, A3) const) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (volatile T *obj, R(T::*func)(A0, A1, A2, A3) volatile) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const volatile T *obj, R(T::*func)(A0, A1, A2, A3) const volatile) | |
| Create a Callback with a member function. | |
| void | attach (R(*func)(A0, A1, A2, A3)) |
| Attach a static function. | |
| void | attach (const Callback< R(A0, A1, A2, A3)> &func) |
| Attach a Callback. | |
| void | attach (void *obj, R(*func)(void *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| void | attach (const void *obj, R(*func)(const void *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| void | attach (volatile void *obj, R(*func)(volatile void *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| void | attach (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(*func)(T *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (const T *obj, R(*func)(const T *, A0, A1, A2, A3)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(*func)(volatile T *, A0, A1, A2, A3)) |
| 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)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(T::*func)(A0, A1, A2, A3)) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const T *obj, R(T::*func)(A0, A1, A2, A3) const) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(T::*func)(A0, A1, A2, A3) volatile) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const volatile T *obj, R(T::*func)(A0, A1, A2, A3) const volatile) |
| Attach a member function. | |
| R | call (A0 a0, A1 a1, A2 a2, A3 a3) const |
| Call the attached function. | |
| R | operator() (A0 a0, A1 a1, A2 a2, A3 a3) 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) |
| 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>
class mbed::Callback< R(A0, A1, A2, A3)>
Callback class based on template specialization.
Synchronization level: Not protected
Definition at line 1754 of file Callback.h.
Constructor & Destructor Documentation
| Callback | ( | R(*)(A0, A1, A2, A3) | func = 0 ) |
Create a Callback with a static function.
- Parameters:
-
func Static function to attach
Definition at line 1759 of file Callback.h.
| Callback | ( | void * | obj, |
| R(*)(void *, A0, A1, A2, A3) | 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 1767 of file Callback.h.
| Callback | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2, A3) | 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 1775 of file Callback.h.
| Callback | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2, A3) | 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 1783 of file Callback.h.
| Callback | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2, A3) | 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 1791 of file Callback.h.
| Callback | ( | T * | obj, |
| R(*)(T *, A0, A1, A2, A3) | 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 1800 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2, A3) | 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 1809 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2, A3) | 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 1818 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2, A3) | 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 1827 of file Callback.h.
| Callback | ( | T * | obj, |
| R(T::*)(A0, A1, A2, A3) | 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 1836 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(T::*)(A0, A1, A2, A3) 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 1845 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3) 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 1854 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3) 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 1863 of file Callback.h.
Member Function Documentation
| void attach | ( | R(*)(A0, A1, A2, A3) | func ) |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 1870 of file Callback.h.
| void attach | ( | const Callback< R(A0, A1, A2, A3)> & | func ) |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 1887 of file Callback.h.
| void attach | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2, A3) | 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 1916 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2, A3) | 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 1990 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2, A3) | 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 2009 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3) 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 2107 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2, A3) volatile | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2087 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(T::*)(A0, A1, A2, A3) const | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2067 of file Callback.h.
| void attach | ( | T * | obj, |
| R(T::*)(A0, A1, A2, A3) | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 2047 of file Callback.h.
| void attach | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2, A3) | 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 1934 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2, A3) | 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 2028 of file Callback.h.
| void attach | ( | void * | obj, |
| R(*)(void *, A0, A1, A2, A3) | 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 1898 of file Callback.h.
| void attach | ( | T * | obj, |
| R(*)(T *, A0, A1, A2, A3) | 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 1971 of file Callback.h.
| void attach | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2, A3) | 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 1952 of file Callback.h.
| R call | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3 | ||
| ) | const |
Call the attached function.
Definition at line 2124 of file Callback.h.
| operator bool | ( | void | ) | const |
Test if function has been attached.
Definition at line 2137 of file Callback.h.
| R operator() | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3 | ||
| ) | const |
Call the attached function.
Definition at line 2131 of file Callback.h.
| static R thunk | ( | void * | func, |
| A0 | a0, | ||
| A1 | a1, | ||
| A2 | a2, | ||
| A3 | a3 | ||
| ) | [static] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 2156 of file Callback.h.
Friends And Related Function Documentation
| bool operator!= | ( | const Callback< R(A0, A1, A2, A3)> & | l, |
| const Callback< R(A0, A1, A2, A3)> & | r | ||
| ) | [friend] |
Test for inequality.
Definition at line 2149 of file Callback.h.
| bool operator== | ( | const Callback< R(A0, A1, A2, A3)> & | l, |
| const Callback< R(A0, A1, A2, A3)> & | r | ||
| ) | [friend] |
Test for equality.
Definition at line 2143 of file Callback.h.
Generated on Tue Jul 12 2022 11:02:16 by
1.7.2
