![]() |
Shadowrun: Awakened 29 September 2011 - Build 871
|
#include <FastDelegate.h>
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) |
Definition at line 303 of file parse/FastDelegate.h.
| 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);
}
| 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);
}
Copyright © 2007-2010 by The Shadowrun: Awakened Team. This work is licensed under the GNU Lesser General Public License 3.