joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

FunctionPointer4< R, A1, A2, A3, A4 > Class Template Reference

FunctionPointer4< R, A1, A2, A3, A4 > Class Template Reference

A class for storing and calling a pointer to a static or member void function with four arguments. More...

#include <FunctionPointer.h>

Inherits mbed::FunctionPointerBase< R >, and mbed::FunctionPointerBase< R >.

Public Member Functions

 FunctionPointer4 (static_fp function=0)
 Create a FunctionPointer, attaching a static function.
template<typename T >
 FunctionPointer4 (T *object, R(T::*member)(A1, A2, A3, A4))
 Create a FunctionPointer, attaching a member function.
void attach (static_fp function)
 Attach a static function.
template<typename T >
void attach (T *object, R(T::*member)(A1, A2, A3, A4))
 Attach a member function.
call (A1 a1, A2 a2, A3 a3, A4 a4)
 Call the attached static or member function.
 FunctionPointer4 (static_fp function=0)
 Create a FunctionPointer, attaching a static function.
template<typename T >
 FunctionPointer4 (T *object, R(T::*member)(A1, A2, A3, A4))
 Create a FunctionPointer, attaching a member function.
void attach (static_fp function)
 Attach a static function.
template<typename T >
void attach (T *object, R(T::*member)(A1, A2, A3, A4))
 Attach a member function.
call (A1 a1, A2 a2, A3 a3, A4 a4)
 Call the attached static or member function.
virtual void clear ()
 Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)
virtual void clear ()
 Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)

Protected Member Functions

call (void *arg)
 Calls the member pointed to by object::member or (function)object.

Detailed Description

template<typename R, typename A1, typename A2, typename A3, typename A4>
class mbed::FunctionPointer4< R, A1, A2, A3, A4 >

A class for storing and calling a pointer to a static or member void function with four arguments.

Definition at line 477 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.


Constructor & Destructor Documentation

FunctionPointer4 ( static_fp  function = 0 )

Create a FunctionPointer, attaching a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 498 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.

FunctionPointer4 ( T *  object,
R(T::*)(A1, A2, A3, A4)  member 
)

Create a FunctionPointer, attaching a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 508 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.

FunctionPointer4 ( static_fp  function = 0 )

Create a FunctionPointer, attaching a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 498 of file features/FEATURE_CLIENT/mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.

FunctionPointer4 ( T *  object,
R(T::*)(A1, A2, A3, A4)  member 
)

Create a FunctionPointer, attaching a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 508 of file features/FEATURE_CLIENT/mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.


Member Function Documentation

void attach ( static_fp  function )

Attach a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 516 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.

void attach ( T *  object,
R(T::*)(A1, A2, A3, A4)  member 
)

Attach a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 527 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.

void attach ( T *  object,
R(T::*)(A1, A2, A3, A4)  member 
)

Attach a member function.

Parameters:
objectThe object pointer to invoke the member function on (i.e. the this pointer)
functionThe address of the void member function to attach

Definition at line 527 of file features/FEATURE_CLIENT/mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.

void attach ( static_fp  function )

Attach a static function.

Parameters:
functionThe void static function to attach (default is none)

Definition at line 516 of file features/FEATURE_CLIENT/mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.

R call ( A1  a1,
A2  a2,
A3  a3,
A4  a4 
)

Call the attached static or member function.

Definition at line 543 of file features/FEATURE_CLIENT/mbed-client/test/mbedclient/utest/common/FunctionPointer.h.

R call ( void *  arg ) [protected, inherited]

Calls the member pointed to by object::member or (function)object.

Parameters:
arg
Returns:

Definition at line 66 of file test/mbedclient/utest/common/FunctionPointerBase.h.

R call ( A1  a1,
A2  a2,
A3  a3,
A4  a4 
)

Call the attached static or member function.

Definition at line 543 of file features/FEATURE_CLIENT/mbed-client-mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointer.h.

virtual void clear ( void   ) [virtual, inherited]

Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)

Definition at line 36 of file mbed-tls/test/mbed-client-mbed-tls/unittest/common/FunctionPointerBase.h.

virtual void clear ( void   ) [virtual, inherited]

Clears the current function pointer assignment After clear(), this instance will point to nothing (NULL)

Definition at line 36 of file test/mbedclient/utest/common/FunctionPointerBase.h.