stlsoft/functional/function_pointer_adaptors.hpp File Reference


Detailed Description

[C++ only] Function classes that adapt non-member functions (and handle different calling conventions) (Functional Library).

#include <stlsoft/stlsoft.h>
#include <functional>

Go to the source code of this file.

Namespaces

namespace  stlsoft

Classes

struct  unary_fastcall_function_pointer
 A unary function adaptor for pointers to functions with FastCall (__fastcall) calling convention. More...
struct  binary_fastcall_function_pointer
 A binary function adaptor for pointers to functions with FastCall (__fastcall) calling convention. More...
struct  unary_stdcall_function_pointer
 A unary function adaptor for pointers to functions with StdCall (__stdcall) calling convention. More...
struct  binary_stdcall_function_pointer
 A binary function adaptor for pointers to functions with StdCall (__stdcall) calling convention. More...

Functions

template<typename R, typename A0, typename A1>
binary_fastcall_function_pointer
< R, A0, A1 > 
ptr_fun (R(__fastcall *func)(A0, A1))
 Creator function to adapt pointers to functions with FastCall (__fastcall) calling convention.
template<typename R, typename A>
unary_stdcall_function_pointer
< R, A > 
ptr_fun (R(__stdcall *func)(A))
 Creator function to adapt pointers to functions with StdCall (__stdcall) calling convention.
template<typename R, typename A0, typename A1>
binary_stdcall_function_pointer
< R, A0, A1 > 
ptr_fun (R(__stdcall *func)(A0, A1))
 Creator function to adapt pointers to functions with StdCall (__stdcall) calling convention.
template<typename A>
unary_fastcall_function_pointer
< void, A > 
ptr_fun_void (void(__fastcall *func)(A))
 Creator function to adapt pointers to functions with FastCall (__fastcall) calling convention that have a void return type.
template<typename A0, typename A1>
binary_fastcall_function_pointer
< void, A0, A1 > 
ptr_fun_void (void(__fastcall *func)(A0, A1))
 Creator function to adapt pointers to functions with FastCall (__fastcall) calling convention that have a void return type.
template<typename A>
unary_stdcall_function_pointer
< void, A > 
ptr_fun_void (void(__stdcall *func)(A))
 Creator function to adapt pointers to functions with StdCall (__stdcall) calling convention that have a void return type.
template<typename A0, typename A1>
binary_stdcall_function_pointer
< void, A0, A1 > 
ptr_fun_void (void(__stdcall *func)(A0, A1))
 Creator function to adapt pointers to functions with StdCall (__stdcall) calling convention that have a void return type.

Variables

unary_fastcall_function_pointer
< R, A > 
ptr_fun (R(__fastcall *func)(A))
 Creator function to adapt pointers to functions with FastCall (__fastcall) calling convention.


Generated on Thu Jun 10 08:58:02 2010 for STLSoft by  doxygen 1.5.6