VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
makVrf::DtDelegate< Ret, Param0 > Class Template Reference

Delegate template for binding static or member functions for callback at later time The return type and single parameter is parameterized in the template. More...

Public Member Functions

 DtDelegate ()
 default empty constructor More...
 
 DtDelegate (Ret(*func)(Param0))
 constructor using a static function More...
 
template<typename T , typename Method >
 DtDelegate (T *object, Method method)
 constructor using a class member functions More...
 
 DtDelegate (const DtDelegate &orig)
 
DtDelegateoperator= (const DtDelegate &orig)
 
virtual ~DtDelegate (void)
 destructor More...
 
Ret operator() (Param0 param0)
 execute operator More...
 
bool operator== (const DtDelegate &rhs)
 
bool operator!= (const DtDelegate &rhs)
 

Private Attributes

Callback< Ret, Param0 > * myCallback
 
bool myIsStatic
 

Detailed Description

template<typename Ret, typename Param0>
class makVrf::DtDelegate< Ret, Param0 >

Delegate template for binding static or member functions for callback at later time The return type and single parameter is parameterized in the template.

Constructor & Destructor Documentation

template<typename Ret , typename Param0 >
makVrf::DtDelegate< Ret, Param0 >::DtDelegate ( )
inline

default empty constructor

template<typename Ret , typename Param0 >
makVrf::DtDelegate< Ret, Param0 >::DtDelegate ( Ret(*)(Param0)  func)
inline

constructor using a static function

template<typename Ret , typename Param0 >
template<typename T , typename Method >
makVrf::DtDelegate< Ret, Param0 >::DtDelegate ( T *  object,
Method  method 
)
inline

constructor using a class member functions

template<typename Ret , typename Param0 >
makVrf::DtDelegate< Ret, Param0 >::DtDelegate ( const DtDelegate< Ret, Param0 > &  orig)
inline
template<typename Ret , typename Param0 >
virtual makVrf::DtDelegate< Ret, Param0 >::~DtDelegate ( void  )
inlinevirtual

Member Function Documentation

template<typename Ret , typename Param0 >
DtDelegate& makVrf::DtDelegate< Ret, Param0 >::operator= ( const DtDelegate< Ret, Param0 > &  orig)
inline
template<typename Ret , typename Param0 >
Ret makVrf::DtDelegate< Ret, Param0 >::operator() ( Param0  param0)
inline

execute operator

References makVrf::DtDelegate< Ret, Param0 >::myCallback.

template<typename Ret , typename Param0 >
bool makVrf::DtDelegate< Ret, Param0 >::operator== ( const DtDelegate< Ret, Param0 > &  rhs)
inline
template<typename Ret , typename Param0 >
bool makVrf::DtDelegate< Ret, Param0 >::operator!= ( const DtDelegate< Ret, Param0 > &  rhs)
inline

Member Data Documentation

template<typename Ret , typename Param0 >
Callback<Ret, Param0>* makVrf::DtDelegate< Ret, Param0 >::myCallback
private
template<typename Ret , typename Param0 >
bool makVrf::DtDelegate< Ret, Param0 >::myIsStatic
private

The documentation for this class was generated from the following file:

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)