CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType > Class Template Reference

#include <Delegate.h>

List of all members.

Public Types

typedef FastDelegate3 type

Public Member Functions

 FastDelegate3 ()
 FastDelegate3 (const FastDelegate3 &x)
void operator= (const FastDelegate3 &x)
bool operator== (const FastDelegate3 &x) const
bool operator!= (const FastDelegate3 &x) const
bool operator< (const FastDelegate3 &x) const
bool operator> (const FastDelegate3 &x) const
template<class X, class Y>
 FastDelegate3 (Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3))
template<class X, class Y>
void Bind (Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3))
template<class X, class Y>
 FastDelegate3 (const Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3) const)
template<class X, class Y>
void Bind (const Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3) const)
 FastDelegate3 (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3))
void operator= (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3))
void Bind (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3))
RetType operator() (Param1 p1, Param2 p2, Param3 p3) const
 operator unspecified_bool_type () const
bool operator== (StaticFunctionPtr funcptr)
bool operator!= (StaticFunctionPtr funcptr)
bool operator! () const
bool IsEmpty () const
void Clear ()

Protected Member Functions

const Internal::DelegateMementoGetMemento ()
void SetMemento (const Internal::DelegateMemento &any)

Private Types

typedef Internal::DefaultVoidToVoid<
RetType >::type 
DesiredRetType
typedef DesiredRetType(*) StaticFunctionPtr (Param1 p1, Param2 p2, Param3 p3)
typedef RetType(*) UnvoidStaticFunctionPtr (Param1 p1, Param2 p2, Param3 p3)
typedef RetType(Internal::GenericClass::*) GenericMemFn (Param1 p1, Param2 p2, Param3 p3)
typedef Internal::ClosurePtr<
GenericMemFn, StaticFunctionPtr,
UnvoidStaticFunctionPtr
ClosureType
typedef CppDelegate::FastDelegate3::SafeBoolStruct UselessTypedef
typedef StaticFunctionPtr
SafeBoolStruct::* 
unspecified_bool_type

Private Member Functions

RetType InvokeStaticFunction (Param1 p1, Param2 p2, Param3 p3) const

Private Attributes

ClosureType m_Closure

Classes

struct  SafeBoolStruct


Detailed Description

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
class CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >

Definition at line 998 of file Delegate.h.


Member Typedef Documentation

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef Internal::DefaultVoidToVoid<RetType>::type CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::DesiredRetType [private]

Definition at line 1000 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef DesiredRetType(*) CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::StaticFunctionPtr(Param1 p1, Param2 p2, Param3 p3) [private]

Definition at line 1001 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef RetType(*) CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::UnvoidStaticFunctionPtr(Param1 p1, Param2 p2, Param3 p3) [private]

Definition at line 1002 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef RetType(Internal::GenericClass::*) CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::GenericMemFn(Param1 p1, Param2 p2, Param3 p3) [private]

Definition at line 1003 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef Internal::ClosurePtr<GenericMemFn, StaticFunctionPtr, UnvoidStaticFunctionPtr> CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::ClosureType [private]

Definition at line 1004 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef FastDelegate3 CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::type

Definition at line 1008 of file Delegate.h.

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef struct CppDelegate::FastDelegate3::SafeBoolStruct CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::UselessTypedef [private]

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
typedef StaticFunctionPtr SafeBoolStruct::* CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::unspecified_bool_type [private]

Definition at line 1057 of file Delegate.h.


Constructor & Destructor Documentation

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::FastDelegate3 (  )  [inline]

Definition at line 1011 of file Delegate.h.

01011 { Clear(); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::FastDelegate3 ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  [inline]

Definition at line 1012 of file Delegate.h.

01012                                               {
01013                 m_Closure.CopyFrom(this, x.m_Closure); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
template<class X, class Y>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::FastDelegate3 ( Y *  pthis,
DesiredRetType(X::*)(Param1 p1, Param2 p2, Param3 p3)  function_to_bind 
) [inline]

Definition at line 1026 of file Delegate.h.

01026                                                                                                         {
01027                 m_Closure.bindmemfunc(Internal::implicit_cast<X*>(pthis), function_to_bind); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
template<class X, class Y>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::FastDelegate3 ( const Y *  pthis,
DesiredRetType(X::*)(Param1 p1, Param2 p2, Param3 p3) const   function_to_bind 
) [inline]

Definition at line 1033 of file Delegate.h.

01033                                                                                                                    {
01034                 m_Closure.bindconstmemfunc(Internal::implicit_cast<const X*>(pthis), function_to_bind); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::FastDelegate3 ( DesiredRetType(*)(Param1 p1, Param2 p2, Param3 p3)  function_to_bind  )  [inline]

Definition at line 1040 of file Delegate.h.

01040                                                                                             {
01041                 Bind(function_to_bind); }


Member Function Documentation

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator= ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  [inline]

Definition at line 1014 of file Delegate.h.

01014                                                   {
01015                 m_Closure.CopyFrom(this, x.m_Closure); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator== ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  const [inline]

Definition at line 1016 of file Delegate.h.

01016                                                        {
01017                 return m_Closure.IsEqual(x.m_Closure);  }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator!= ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  const [inline]

Definition at line 1018 of file Delegate.h.

01018                                                        {
01019                 return !m_Closure.IsEqual(x.m_Closure); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator< ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  const [inline]

Definition at line 1020 of file Delegate.h.

01020                                                       {
01021                 return m_Closure.IsLess(x.m_Closure);   }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator> ( const FastDelegate3< Param1, Param2, Param3, RetType > &  x  )  const [inline]

Definition at line 1022 of file Delegate.h.

01022                                                       {
01023                 return x.m_Closure.IsLess(m_Closure);   }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
template<class X, class Y>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::Bind ( Y *  pthis,
DesiredRetType(X::*)(Param1 p1, Param2 p2, Param3 p3)  function_to_bind 
) [inline]

Definition at line 1029 of file Delegate.h.

01029                                                                                                           {
01030                 m_Closure.bindmemfunc(Internal::implicit_cast<X*>(pthis), function_to_bind);    }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
template<class X, class Y>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::Bind ( const Y *  pthis,
DesiredRetType(X::*)(Param1 p1, Param2 p2, Param3 p3) const   function_to_bind 
) [inline]

Definition at line 1036 of file Delegate.h.

01036                                                                                                                       {
01037                 m_Closure.bindconstmemfunc(Internal::implicit_cast<const X *>(pthis), function_to_bind);        }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator= ( DesiredRetType(*)(Param1 p1, Param2 p2, Param3 p3)  function_to_bind  )  [inline]

Definition at line 1043 of file Delegate.h.

01043                                                                                                {
01044                 Bind(function_to_bind); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::Bind ( DesiredRetType(*)(Param1 p1, Param2 p2, Param3 p3)  function_to_bind  )  [inline]

Definition at line 1045 of file Delegate.h.

01045                                                                                               {
01046                 m_Closure.bindstaticfunc(this, &FastDelegate3::InvokeStaticFunction, 
01047                         function_to_bind); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
RetType CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator() ( Param1  p1,
Param2  p2,
Param3  p3 
) const [inline]

Definition at line 1049 of file Delegate.h.

01049                                                                    {
01050         return (m_Closure.GetClosureThis()->*(m_Closure.GetClosureMemPtr()))(p1, p2, p3); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator unspecified_bool_type (  )  const [inline]

Definition at line 1059 of file Delegate.h.

01059                                                {
01060         return IsEmpty()? 0: &SafeBoolStruct::m_nonzero;
01061     }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator== ( StaticFunctionPtr  funcptr  )  [inline]

Definition at line 1063 of file Delegate.h.

01063                                                           {
01064                 return m_Closure.IsEqualToStaticFuncPtr(funcptr);       }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator!= ( StaticFunctionPtr  funcptr  )  [inline]

Definition at line 1065 of file Delegate.h.

01065                                                           { 
01066                 return !m_Closure.IsEqualToStaticFuncPtr(funcptr);    }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::operator! (  )  const [inline]

Definition at line 1067 of file Delegate.h.

01067                                         {       // Is it bound to anything?
01068                         return !m_Closure; }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
bool CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::IsEmpty (  )  const [inline]

Definition at line 1069 of file Delegate.h.

01069                                         {
01070                         return !m_Closure; }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::Clear (  )  [inline]

Definition at line 1071 of file Delegate.h.

01071 { m_Closure.Clear();}

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
const Internal::DelegateMemento& CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::GetMemento (  )  [inline, protected]

Definition at line 1074 of file Delegate.h.

01074 { return m_Closure; }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
void CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::SetMemento ( const Internal::DelegateMemento any  )  [inline, protected]

Definition at line 1075 of file Delegate.h.

01075 { m_Closure.CopyFrom(this, any); }

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
RetType CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::InvokeStaticFunction ( Param1  p1,
Param2  p2,
Param3  p3 
) const [inline, private]

Definition at line 1078 of file Delegate.h.

01078                                                                             {
01079         return (*(m_Closure.GetStaticFunction()))(p1, p2, p3); }


Member Data Documentation

template<class Param1, class Param2, class Param3, class RetType = Internal::DefaultVoid>
ClosureType CppDelegate::FastDelegate3< Param1, Param2, Param3, RetType >::m_Closure [private]

Definition at line 1005 of file Delegate.h.


The documentation for this class was generated from the following file:
Generated on Sat Sep 15 23:41:48 2007 for AVR C++ Lib (common) by  doxygen 1.5.2
SourceForge.net Logo MTÜ TTÜ Robotiklubi