Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Callback class

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:
funcStatic 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:
funcStatic function to attach
argPointer 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:
funcStatic function to attach
argPointer 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:
funcStatic function to attach
argPointer 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:
funcStatic function to attach
argPointer 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:
objOptional pointer to object to bind to function
methodMember 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:
objOptional pointer to object to bind to function
methodMember 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:
objOptional pointer to object to bind to function
methodMember 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:
objOptional pointer to object to bind to function
methodMember 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:
funcStatic function to attach
Returns:
Callback with inferred type

Definition at line 398 of file Callback.h.