#include <functionpointer.h>
|  | 
| typedef R(* | static_fp) () | 
|  | 
|  | 
|  | FP1 (R(*function)(A1)=0) | 
|  | 
| template<typename T > | 
|  | FP1 (T *object, R(T::*member)(A1)) | 
|  | 
| void | attach (R(*function)(A1)) | 
|  | 
| template<typename T > | 
| void | attach (T *object, R(T::*member)(A1)) | 
|  | 
| R | call (A1 a) | 
|  | 
| static_fp | get_function () const | 
|  | 
| R | operator() (A1 a) | 
|  | 
|  | operator bool (void) | 
|  | 
template<typename R, typename A1>
class FP1< R, A1 >
Pointer to a function with one parameter. 
template<typename R , typename A1 > 
  
  | 
        
          | FP1< R, A1 >::FP1 | ( | R(*)(A1) | 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 > 
template<typename T > 
  
  | 
        
          | FP1< R, A1 >::FP1 | ( | T * | object, |  
          |  |  | R(T::*)(A1) | member |  
          |  | ) |  |  |  | inline | 
 
Create a function pointeer, 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 > 
  
  | 
        
          | void FP1< R, A1 >::attach | ( | R(*)(A1) | function | ) |  |  | inline | 
 
Attach a static function.
- Parameters
- 
  
    | function | The void static function to attach (default is none). |  
 
 
 
template<typename R , typename A1 > 
template<typename T > 
  
  | 
        
          | void FP1< R, A1 >::attach | ( | T * | object, |  
          |  |  | R(T::*)(A1) | 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 > 
  
  | 
        
          | R FP1< R, A1 >::call | ( | A1 | a | ) |  |  | inline | 
 
Call the attached static or member function. 
 
 
The documentation for this class was generated from the following file: