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

Data Structures

class  Callback< Signature >
 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...)=nullptr) noexcept
 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 R , typename... ArgTs>
Callback< R(ArgTs...)> callback (Callback< R(ArgTs...)> &&func) noexcept
 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...)) noexcept
 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) noexcept
 Create a callback class with type inferred from the arguments. More...
 
template<typename F >
Callback< detail::unqualify_fn_t< detail::member_type_t< decltype(&mstd::remove_cvref_t< F >::operator())> > > callback (F &&f)
 Create a Create a callback class with type inferred from the arguments. More...
 

Detailed Description

Function Documentation

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

Create a callback class with type inferred from the arguments.

Parameters
funcStatic function to attach
Returns
Callback with inferred type

Definition at line 671 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 682 of file Callback.h.

Callback<R(ArgTs...)> mbed::callback ( Callback< R(ArgTs...)> &&  func)
noexcept

Create a callback class with type inferred from the arguments.

Parameters
funcStatic function to attach
Returns
Callback with inferred type

Definition at line 693 of file Callback.h.

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

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 705 of file Callback.h.

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

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 759 of file Callback.h.

Callback<detail::unqualify_fn_t<detail::member_type_t<decltype(&mstd::remove_cvref_t<F>::operator())> > > mbed::callback ( F &&  f)

Create a Create a callback class with type inferred from the arguments.

Parameters
fFunction object to attach
Note
The function object is limited to a single word of storage

Definition at line 788 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.