Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Callback class
[Platform]
Data Structures | |
class | Callback< R(ArgTs...)> |
Callback class based on template specialization. More... | |
Functions | |
template<typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (R(*func)(ArgTs...)=0) |
Create a callback class with type inferred from the arguments. | |
template<typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (const Callback< R(ArgTs...)> &func) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (U *obj, R(T::*method)(ArgTs...)) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (const U *obj, R(T::*method)(ArgTs...) const) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (volatile U *obj, R(T::*method)(ArgTs...) volatile) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (const volatile U *obj, R(T::*method)(ArgTs...) const volatile) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (R(*func)(T *, ArgTs...), U *arg) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (R(*func)(const T *, ArgTs...), const U *arg) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (R(*func)(volatile T *, ArgTs...), volatile U *arg) |
Create a callback class with type inferred from the arguments. | |
template<typename T , typename U , typename R , typename... ArgTs> | |
Callback< R(ArgTs...)> | callback (R(*func)(const volatile T *, ArgTs...), const volatile U *arg) |
Create a callback class with type inferred from the arguments. |
Function Documentation
Callback<R(ArgTs...)> mbed::callback | ( | R(*)(ArgTs...) | func = 0 ) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with inferred type
Definition at line 387 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | R(*)(const volatile T *, ArgTs...) | func, |
const volatile U * | arg | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with inferred type
Definition at line 494 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | R(*)(volatile T *, ArgTs...) | func, |
volatile U * | arg | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with inferred type
Definition at line 482 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | R(*)(const T *, ArgTs...) | func, |
const U * | arg | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with inferred type
Definition at line 470 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | R(*)(T *, ArgTs...) | func, |
U * | arg | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach arg Pointer argument to function
- Returns:
- Callback with inferred type
Definition at line 458 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | const volatile U * | obj, |
R(T::*)(ArgTs...) const volatile | method | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with inferred type
Definition at line 446 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | volatile U * | obj, |
R(T::*)(ArgTs...) volatile | method | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with inferred type
Definition at line 434 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | const U * | obj, |
R(T::*)(ArgTs...) const | method | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with inferred type
Definition at line 422 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | U * | obj, |
R(T::*)(ArgTs...) | method | ||
) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
obj Optional pointer to object to bind to function method Member function to attach
- Returns:
- Callback with inferred type
Definition at line 410 of file Callback.h.
Callback<R(ArgTs...)> mbed::callback | ( | const Callback< R(ArgTs...)> & | func ) |
Create a callback class with type inferred from the arguments.
- Parameters:
-
func Static function to attach
- Returns:
- Callback with inferred type
Definition at line 398 of file Callback.h.
Generated on Tue Jul 12 2022 13:55:25 by
