Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions
FunctionPointerArg1< R, void > Class Template Reference
Inheritance diagram for FunctionPointerArg1< R, void >:
Callback< R()>

Public Member Functions

void attach (R(*func)())
 Attach a static function. More...
 
void attach (const Callback< R()> &func)
 Attach a Callback. More...
 
template<typename T , typename U >
void attach (U *obj, R(T::*method)())
 Attach a member function. More...
 
template<typename T , typename U >
void attach (const U *obj, R(T::*method)() const)
 Attach a member function. More...
 
template<typename T , typename U >
void attach (volatile U *obj, R(T::*method)() volatile)
 Attach a member function. More...
 
template<typename T , typename U >
void attach (const volatile U *obj, R(T::*method)() const volatile)
 Attach a member function. More...
 
template<typename T , typename U >
void attach (R(*func)(T *), U *arg)
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (R(*func)(const T *), const U *arg)
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (R(*func)(volatile T *), volatile U *arg)
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (R(*func)(const volatile T *), const volatile U *arg)
 Attach a static function with a bound pointer. More...
 
template<typename F >
void attach (F f,)
 Attach a function object. More...
 
template<typename F >
void attach (const F f,)
 Attach a function object. More...
 
template<typename F >
void attach (volatile F f,)
 Attach a function object. More...
 
template<typename F >
void attach (const volatile F f,)
 Attach a function object. More...
 
template<typename T , typename U >
void attach (U *obj, R(*func)(T *))
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (const U *obj, R(*func)(const T *))
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (volatile U *obj, R(*func)(volatile T *))
 Attach a static function with a bound pointer. More...
 
template<typename T , typename U >
void attach (const volatile U *obj, R(*func)(const volatile T *))
 Attach a static function with a bound pointer. More...
 
 operator bool () const
 Test if function has been attached. More...
 

Static Public Member Functions

static R thunk (void *func)
 Static thunk for passing as C-style function. More...
 

Detailed Description

template<typename R>
class mbed::FunctionPointerArg1< R, void >

Definition at line 70 of file FunctionPointer.h.

Member Function Documentation

void attach ( R(*)()  func)
inherited

Attach a static function.

Parameters
funcStatic function to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 296 of file Callback.h.

void attach ( const Callback< R()> &  func)
inherited

Attach a Callback.

Parameters
funcThe Callback to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 309 of file Callback.h.

void attach ( U *  obj,
R(T::*)()  method 
)
inherited

Attach a member function.

Parameters
objPointer to object to invoke member function on
methodMember function to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 324 of file Callback.h.

void attach ( const U *  obj,
R(T::*)() const  method 
)
inherited

Attach a member function.

Parameters
objPointer to object to invoke member function on
methodMember function to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 339 of file Callback.h.

void attach ( volatile U *  obj,
R(T::*)() volatile  method 
)
inherited

Attach a member function.

Parameters
objPointer to object to invoke member function on
methodMember function to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 354 of file Callback.h.

void attach ( const volatile U *  obj,
R(T::*)() const volatile  method 
)
inherited

Attach a member function.

Parameters
objPointer to object to invoke member function on
methodMember function to attach
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 369 of file Callback.h.

void attach ( R(*)(T *)  func,
U *  arg 
)
inherited

Attach a static function with a bound pointer.

Parameters
funcStatic function to attach
argPointer argument to function
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 384 of file Callback.h.

void attach ( R(*)(const T *)  func,
const U *  arg 
)
inherited

Attach a static function with a bound pointer.

Parameters
funcStatic function to attach
argPointer argument to function
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 399 of file Callback.h.

void attach ( R(*)(volatile T *)  func,
volatile U *  arg 
)
inherited

Attach a static function with a bound pointer.

Parameters
funcStatic function to attach
argPointer argument to function
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 414 of file Callback.h.

void attach ( R(*)(const volatile T *)  func,
const volatile U *  arg 
)
inherited

Attach a static function with a bound pointer.

Parameters
funcStatic function to attach
argPointer argument to function
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 429 of file Callback.h.

void attach ( f)
inherited

Attach a function object.

Parameters
fFunction object to attach
Note
The function object is limited to a single word of storage
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 444 of file Callback.h.

void attach ( const F  f)
inherited

Attach a function object.

Parameters
fFunction object to attach
Note
The function object is limited to a single word of storage
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 459 of file Callback.h.

void attach ( volatile F  f)
inherited

Attach a function object.

Parameters
fFunction object to attach
Note
The function object is limited to a single word of storage
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 474 of file Callback.h.

void attach ( const volatile F  f)
inherited

Attach a function object.

Parameters
fFunction object to attach
Note
The function object is limited to a single word of storage
Deprecated:
Replaced by simple assignment 'Callback cb = func'

Definition at line 489 of file Callback.h.

void attach ( U *  obj,
R(*)(T *)  func 
)
inherited

Attach a static function with a bound pointer.

Parameters
objPointer to object to bind to function
funcStatic function to attach
Deprecated:
Arguments to callback have been reordered to attach(func, arg)

Definition at line 504 of file Callback.h.

void attach ( const U *  obj,
R(*)(const T *)  func 
)
inherited

Attach a static function with a bound pointer.

Parameters
objPointer to object to bind to function
funcStatic function to attach
Deprecated:
Arguments to callback have been reordered to attach(func, arg)

Definition at line 519 of file Callback.h.

void attach ( volatile U *  obj,
R(*)(volatile T *)  func 
)
inherited

Attach a static function with a bound pointer.

Parameters
objPointer to object to bind to function
funcStatic function to attach
Deprecated:
Arguments to callback have been reordered to attach(func, arg)

Definition at line 534 of file Callback.h.

void attach ( const volatile U *  obj,
R(*)(const volatile T *)  func 
)
inherited

Attach a static function with a bound pointer.

Parameters
objPointer to object to bind to function
funcStatic function to attach
Deprecated:
Arguments to callback have been reordered to attach(func, arg)

Definition at line 549 of file Callback.h.

operator bool ( ) const
inherited

Test if function has been attached.

Definition at line 584 of file Callback.h.

static R thunk ( void *  func)
staticinherited

Static thunk for passing as C-style function.

Parameters
funcCallback to call passed as void pointer
Returns
the value as determined by func which is of type and determined by the signature of func

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