#include <functionpointer.h>
|
typedef R(* | static_fp) () |
|
|
| FP3 (R(*function)(A1, A2, A3)=0) |
|
template<typename T > |
| FP3 (T *object, R(T::*member)(A1, A2, A3)) |
|
void | attach (R(*function)(A1, A2, A3)) |
|
template<typename T > |
void | attach (T *object, R(T::*member)(A1, A2, A3)) |
|
R | call (A1 a1, A2 a2, A3 a3) |
|
static_fp | get_function () const |
|
R | operator() (A1 a1, A2 a2, A3 a3) |
|
| operator bool (void) |
|
template<typename R, typename A1, typename A2, typename A3>
class FP3< R, A1, A2, A3 >
Pointer to a function with three parameters
template<typename R , typename A1 , typename A2 , typename A3 >
FP3< R, A1, A2, A3 >::FP3 |
( |
R(*)(A1, A2, A3) |
function = 0 | ) |
|
|
inline |
Create a function pointer, attaching a static function.
- Parameters
-
function | The void static function to attach (default is none). |
template<typename R , typename A1 , typename A2 , typename A3 >
template<typename T >
FP3< R, A1, A2, A3 >::FP3 |
( |
T * |
object, |
|
|
R(T::*)(A1, A2, A3) |
member |
|
) |
| |
|
inline |
Create a function pointer, attaching a member function.
- Parameters
-
object | The object pointer to invoke the member function on (the "this" pointer). |
member | The address of the void member function to attach. |
template<typename R , typename A1 , typename A2 , typename A3 >
void FP3< R, A1, A2, A3 >::attach |
( |
R(*)(A1, A2, A3) |
function | ) |
|
|
inline |
Attach a static function.
- Parameters
-
function | The void static function to attach (default is none). |
template<typename R , typename A1 , typename A2 , typename A3 >
template<typename T >
void FP3< R, A1, A2, A3 >::attach |
( |
T * |
object, |
|
|
R(T::*)(A1, A2, A3) |
member |
|
) |
| |
|
inline |
Attach a member function.
- Parameters
-
object | The object pointer to invoke the member function on (the "this" pointer). |
member | The address of the void member function to attach. |
template<typename R , typename A1 , typename A2 , typename A3 >
R FP3< R, A1, A2, A3 >::call |
( |
A1 |
a1, |
|
|
A2 |
a2, |
|
|
A3 |
a3 |
|
) |
| |
|
inline |
Call the attached static or member function.
The documentation for this class was generated from the following file: