Shadowrun: Awakened 29 September 2011 - Build 871
Static Public Member Functions
fastdelegate::detail::SimplifyMemFunc< SINGLE_MEMFUNCPTR_SIZE > Struct Template Reference

#include <FastDelegate.h>

List of all members.

Static Public Member Functions

template<class X , class XFuncType , class GenericMemFuncType >
static GenericClass * Convert (X *pthis, XFuncType function_to_bind, GenericMemFuncType &bound_func)
template<class X , class XFuncType , class GenericMemFuncType >
static GenericClass * Convert (X *pthis, XFuncType function_to_bind, GenericMemFuncType &bound_func)

Detailed Description

template<>
struct fastdelegate::detail::SimplifyMemFunc< SINGLE_MEMFUNCPTR_SIZE >

Definition at line 303 of file parse/FastDelegate.h.


Member Function Documentation

template<class X , class XFuncType , class GenericMemFuncType >
static GenericClass* fastdelegate::detail::SimplifyMemFunc< SINGLE_MEMFUNCPTR_SIZE >::Convert ( X *  pthis,
XFuncType  function_to_bind,
GenericMemFuncType &  bound_func 
) [inline, static]

Definition at line 305 of file parse/FastDelegate.h.

References fastdelegate::detail::horrible_cast().

                                            {
#if defined __DMC__  
        // Digital Mars doesn't allow you to cast between abitrary PMF's, 
        // even though the standard says you can. The 32-bit compiler lets you
        // static_cast through an int, but the DOS compiler doesn't.
        bound_func = horrible_cast<GenericMemFuncType>(function_to_bind);
#else 
        bound_func = reinterpret_cast<GenericMemFuncType>(function_to_bind);
#endif
        return reinterpret_cast<GenericClass *>(pthis);
    }
template<class X , class XFuncType , class GenericMemFuncType >
static GenericClass* fastdelegate::detail::SimplifyMemFunc< SINGLE_MEMFUNCPTR_SIZE >::Convert ( X *  pthis,
XFuncType  function_to_bind,
GenericMemFuncType &  bound_func 
) [inline, static]

Definition at line 305 of file port/FastDelegate.h.

References fastdelegate::detail::horrible_cast().

                                            {
#if defined __DMC__  
        // Digital Mars doesn't allow you to cast between abitrary PMF's, 
        // even though the standard says you can. The 32-bit compiler lets you
        // static_cast through an int, but the DOS compiler doesn't.
        bound_func = horrible_cast<GenericMemFuncType>(function_to_bind);
#else 
        bound_func = reinterpret_cast<GenericMemFuncType>(function_to_bind);
#endif
        return reinterpret_cast<GenericClass *>(pthis);
    }

The documentation for this struct was generated from the following files:

Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.

GNU Lesser General Public License 3 Sourceforge.net