dhgdh
Dependencies: MAX44000 PWM_Tone_Library nexpaq_mdk
Fork of LED_Demo by
Callback< R(A0, A1, A2)> Class Template Reference
Callback class based on template specialization. More...
#include <Callback.h>
Public Member Functions | |
| Callback (R(*func)(A0, A1, A2)=0) | |
| Create a Callback with a static function. | |
| Callback (void *obj, R(*func)(void *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const void *obj, R(*func)(const void *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (volatile void *obj, R(*func)(volatile void *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| Callback (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(*func)(T *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (const T *obj, R(*func)(const T *, A0, A1, A2)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (volatile T *obj, R(*func)(volatile T *, A0, A1, A2)) | |
| 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)) | |
| Create a Callback with a static function and bound pointer. | |
| template<typename T > | |
| Callback (T *obj, R(T::*func)(A0, A1, A2)) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const T *obj, R(T::*func)(A0, A1, A2) const) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (volatile T *obj, R(T::*func)(A0, A1, A2) volatile) | |
| Create a Callback with a member function. | |
| template<typename T > | |
| Callback (const volatile T *obj, R(T::*func)(A0, A1, A2) const volatile) | |
| Create a Callback with a member function. | |
| void | attach (R(*func)(A0, A1, A2)) |
| Attach a static function. | |
| void | attach (const Callback< R(A0, A1, A2)> &func) |
| Attach a Callback. | |
| void | attach (void *obj, R(*func)(void *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| void | attach (const void *obj, R(*func)(const void *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| void | attach (volatile void *obj, R(*func)(volatile void *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| void | attach (const volatile void *obj, R(*func)(const volatile void *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(*func)(T *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (const T *obj, R(*func)(const T *, A0, A1, A2)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(*func)(volatile T *, A0, A1, A2)) |
| 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)) |
| Attach a static function with a bound pointer. | |
| template<typename T > | |
| void | attach (T *obj, R(T::*func)(A0, A1, A2)) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const T *obj, R(T::*func)(A0, A1, A2) const) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (volatile T *obj, R(T::*func)(A0, A1, A2) volatile) |
| Attach a member function. | |
| template<typename T > | |
| void | attach (const volatile T *obj, R(T::*func)(A0, A1, A2) const volatile) |
| Attach a member function. | |
| R | call (A0 a0, A1 a1, A2 a2) const |
| Call the attached function. | |
| R | operator() (A0 a0, A1 a1, A2 a2) 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) |
| 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>
class mbed::Callback< R(A0, A1, A2)>
Callback class based on template specialization.
Synchronization level: Not protected
Definition at line 1325 of file Callback.h.
Constructor & Destructor Documentation
| Callback | ( | R(*)(A0, A1, A2) | func = 0 ) |
Create a Callback with a static function.
- Parameters:
-
func Static function to attach
Definition at line 1330 of file Callback.h.
| Callback | ( | void * | obj, |
| R(*)(void *, A0, A1, A2) | 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 1338 of file Callback.h.
| Callback | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2) | 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 1346 of file Callback.h.
| Callback | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2) | 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 1354 of file Callback.h.
| Callback | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2) | 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 1362 of file Callback.h.
| Callback | ( | T * | obj, |
| R(*)(T *, A0, A1, A2) | 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 1371 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2) | 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 1380 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2) | 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 1389 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2) | 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 1398 of file Callback.h.
| Callback | ( | T * | obj, |
| R(T::*)(A0, A1, A2) | 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 1407 of file Callback.h.
| Callback | ( | const T * | obj, |
| R(T::*)(A0, A1, A2) 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 1416 of file Callback.h.
| Callback | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2) 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 1425 of file Callback.h.
| Callback | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2) 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 1434 of file Callback.h.
Member Function Documentation
| void attach | ( | R(*)(A0, A1, A2) | func ) |
Attach a static function.
- Parameters:
-
func Static function to attach
Definition at line 1441 of file Callback.h.
| void attach | ( | const Callback< R(A0, A1, A2)> & | func ) |
Attach a Callback.
- Parameters:
-
func The Callback to attach
Definition at line 1458 of file Callback.h.
| void attach | ( | const void * | obj, |
| R(*)(const void *, A0, A1, A2) | 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 1487 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(*)(const T *, A0, A1, A2) | 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 1561 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(*)(volatile T *, A0, A1, A2) | 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 1580 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(T::*)(A0, A1, A2) 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 1678 of file Callback.h.
| void attach | ( | volatile T * | obj, |
| R(T::*)(A0, A1, A2) volatile | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 1658 of file Callback.h.
| void attach | ( | const T * | obj, |
| R(T::*)(A0, A1, A2) const | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 1638 of file Callback.h.
| void attach | ( | T * | obj, |
| R(T::*)(A0, A1, A2) | func | ||
| ) |
Attach a member function.
- Parameters:
-
obj Pointer to object to invoke member function on func Member function to attach
Definition at line 1618 of file Callback.h.
| void attach | ( | volatile void * | obj, |
| R(*)(volatile void *, A0, A1, A2) | 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 1505 of file Callback.h.
| void attach | ( | const volatile T * | obj, |
| R(*)(const volatile T *, A0, A1, A2) | 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 1599 of file Callback.h.
| void attach | ( | void * | obj, |
| R(*)(void *, A0, A1, A2) | 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 1469 of file Callback.h.
| void attach | ( | T * | obj, |
| R(*)(T *, A0, A1, A2) | 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 1542 of file Callback.h.
| void attach | ( | const volatile void * | obj, |
| R(*)(const volatile void *, A0, A1, A2) | 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 1523 of file Callback.h.
| R call | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2 | ||
| ) | const |
Call the attached function.
Definition at line 1695 of file Callback.h.
| operator bool | ( | void | ) | const |
Test if function has been attached.
Definition at line 1708 of file Callback.h.
| R operator() | ( | A0 | a0, |
| A1 | a1, | ||
| A2 | a2 | ||
| ) | const |
Call the attached function.
Definition at line 1702 of file Callback.h.
| static R thunk | ( | void * | func, |
| A0 | a0, | ||
| A1 | a1, | ||
| A2 | a2 | ||
| ) | [static] |
Static thunk for passing as C-style function.
- Parameters:
-
func Callback to call passed as void pointer
Definition at line 1727 of file Callback.h.
Friends And Related Function Documentation
| bool operator!= | ( | const Callback< R(A0, A1, A2)> & | l, |
| const Callback< R(A0, A1, A2)> & | r | ||
| ) | [friend] |
Test for inequality.
Definition at line 1720 of file Callback.h.
| bool operator== | ( | const Callback< R(A0, A1, A2)> & | l, |
| const Callback< R(A0, A1, A2)> & | r | ||
| ) | [friend] |
Test for equality.
Definition at line 1714 of file Callback.h.
Generated on Tue Jul 12 2022 11:02:16 by
1.7.2
