Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Functions
Callback class

Data Structures

class  Callback< F >
 Callback class based on template specialization. More...
 
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. More...
 
template<typename R , typename... ArgTs>
Callback< R(ArgTs...)> callback (const Callback< R(ArgTs...)> &func)
 Create a callback class with type inferred from the arguments. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
template<typename T , typename U , typename R , typename... ArgTs>
Callback< R(ArgTs...)> callback (U *obj, R(*func)(T *, ArgTs...))
 Create a callback class with type inferred from the arguments. More...
 
template<typename T , typename U , typename R , typename... ArgTs>
Callback< R(ArgTs...)> callback (const U *obj, R(*func)(const T *, ArgTs...))
 Create a callback class with type inferred from the arguments. More...
 
template<typename T , typename U , typename R , typename... ArgTs>
Callback< R(ArgTs...)> callback (volatile U *obj, R(*func)(volatile T *, ArgTs...))
 Create a callback class with type inferred from the arguments. More...
 
template<typename T , typename U , typename R , typename... ArgTs>
Callback< R(ArgTs...)> callback (const volatile U *obj, R(*func)(const volatile T *, ArgTs...))
 Create a callback class with type inferred from the arguments. More...
 

Detailed Description

Function Documentation

Callback<R(ArgTs...)> mbed::callback ( R(*)(ArgTs...)  func = 0)

Create a callback class with type inferred from the arguments.

Parameters
funcStatic function to attach
Returns
Callback with inferred type

Definition at line 709 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
funcStatic function to attach
Returns
Callback with inferred type

Definition at line 720 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
objOptional pointer to object to bind to function
methodMember function to attach
Returns
Callback with inferred type

Definition at line 732 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
objOptional pointer to object to bind to function
methodMember function to attach
Returns
Callback with inferred type

Definition at line 744 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
objOptional pointer to object to bind to function
methodMember function to attach
Returns
Callback with inferred type

Definition at line 756 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
objOptional pointer to object to bind to function
methodMember function to attach
Returns
Callback with inferred type

Definition at line 768 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
funcStatic function to attach
argPointer argument to function
Returns
Callback with inferred type

Definition at line 780 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
funcStatic function to attach
argPointer argument to function
Returns
Callback with inferred type

Definition at line 792 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
funcStatic function to attach
argPointer argument to function
Returns
Callback with inferred type

Definition at line 804 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
funcStatic function to attach
argPointer argument to function
Returns
Callback with inferred type

Definition at line 816 of file Callback.h.

Callback<R(ArgTs...)> mbed::callback ( U *  obj,
R(*)(T *, ArgTs...)  func 
)

Create a callback class with type inferred from the arguments.

Parameters
objOptional pointer to object to bind to function
funcStatic function to attach
Returns
Callback with inferred type
Deprecated:
Arguments to callback have been reordered to callback(func, arg)

Definition at line 832 of file Callback.h.

Callback<R(ArgTs...)> mbed::callback ( const U *  obj,
R(*)(const T *, ArgTs...)  func 
)

Create a callback class with type inferred from the arguments.

Parameters
objOptional pointer to object to bind to function
funcStatic function to attach
Returns
Callback with inferred type
Deprecated:
Arguments to callback have been reordered to callback(func, arg)

Definition at line 848 of file Callback.h.

Callback<R(ArgTs...)> mbed::callback ( volatile U *  obj,
R(*)(volatile T *, ArgTs...)  func 
)

Create a callback class with type inferred from the arguments.

Parameters
objOptional pointer to object to bind to function
funcStatic function to attach
Returns
Callback with inferred type
Deprecated:
Arguments to callback have been reordered to callback(func, arg)

Definition at line 864 of file Callback.h.

Callback<R(ArgTs...)> mbed::callback ( const volatile U *  obj,
R(*)(const volatile T *, ArgTs...)  func 
)

Create a callback class with type inferred from the arguments.

Parameters
objOptional pointer to object to bind to function
funcStatic function to attach
Returns
Callback with inferred type
Deprecated:
Arguments to callback have been reordered to callback(func, arg)

Definition at line 880 of file Callback.h.

Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.