CppDelegate::FastDelegate5< Param1, Param2, Param3, Param4, Param5, RetType > Class Template Reference

#include <Delegate.h>

List of all members.

Public Types

typedef FastDelegate5 type

Public Member Functions

 FastDelegate5 ()
 FastDelegate5 (const FastDelegate5 &x)
void operator= (const FastDelegate5 &x)
bool operator== (const FastDelegate5 &x) const
bool operator!= (const FastDelegate5 &x) const
bool operator< (const FastDelegate5 &x) const
bool operator> (const FastDelegate5 &x) const
template<class X, class Y>
 FastDelegate5 (Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5))
template<class X, class Y>
void Bind (Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5))
template<class X, class Y>
 FastDelegate5 (const Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5) const)
template<class X, class Y>
void Bind (const Y *pthis, DesiredRetType(X::*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5) const)
 FastDelegate5 (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5))
void operator= (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5))
void Bind (DesiredRetType(*function_to_bind)(Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5))
RetType operator() (Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5) 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, Param4 p4, Param5 p5)
typedef RetType(*) UnvoidStaticFunctionPtr (Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5)
typedef RetType(Internal::GenericClass::*) GenericMemFn (Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5)
typedef Internal::ClosurePtr<
GenericMemFn, StaticFunctionPtr,
UnvoidStaticFunctionPtr
ClosureType
typedef CppDelegate::FastDelegate5::SafeBoolStruct UselessTypedef
typedef StaticFunctionPtr
SafeBoolStruct::* 
unspecified_bool_type

Private Member Functions

RetType InvokeStaticFunction (Param1 p1, Param2 p2, Param3 p3, Param4 p4, Param5 p5) const

Private Attributes

ClosureType m_Closure

Classes

struct  SafeBoolStruct


Detailed Description

template<class Param1, class Param2, class Param3, class Param4, class Param5, class RetType = Internal::DefaultVoid>
class CppDelegate::FastDelegate5< Param1, Param2, Param3, Param4, Param5, RetType >

Definition at line 1170 of file Delegate.h.


Member Typedef Documentation

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

Definition at line 1172 of file Delegate.h.

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

Definition at line 1173 of file Delegate.h.

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

Definition at line 1174 of file Delegate.h.

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

Definition at line 1175 of file Delegate.h.

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

Definition at line 1176 of file Delegate.h.

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

Definition at line 1180 of file Delegate.h.

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

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

Definition at line 1229 of file Delegate.h.


Constructor & Destructor Documentation

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

Definition at line 1183 of file Delegate.h.

01183 { Clear(); }

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

Definition at line 1184 of file Delegate.h.

01184                                               {
01185                 m_Closure.CopyFrom(this, x.m_Closure); }

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

Definition at line 1198 of file Delegate.h.

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

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

Definition at line 1205 of file Delegate.h.

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

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

Definition at line 1212 of file Delegate.h.

01212                                                                                                                   {
01213                 Bind(function_to_bind); }


Member Function Documentation

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

Definition at line 1186 of file Delegate.h.

01186                                                   {
01187                 m_Closure.CopyFrom(this, x.m_Closure); }

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

Definition at line 1188 of file Delegate.h.

01188                                                        {
01189                 return m_Closure.IsEqual(x.m_Closure);  }

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

Definition at line 1190 of file Delegate.h.

01190                                                        {
01191                 return !m_Closure.IsEqual(x.m_Closure); }

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

Definition at line 1192 of file Delegate.h.

01192                                                       {
01193                 return m_Closure.IsLess(x.m_Closure);   }

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

Definition at line 1194 of file Delegate.h.

01194                                                       {
01195                 return x.m_Closure.IsLess(m_Closure);   }

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

Definition at line 1201 of file Delegate.h.

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

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

Definition at line 1208 of file Delegate.h.

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

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

Definition at line 1215 of file Delegate.h.

01215                                                                                                                      {
01216                 Bind(function_to_bind); }

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

Definition at line 1217 of file Delegate.h.

01217                                                                                                                     {
01218                 m_Closure.bindstaticfunc(this, &FastDelegate5::InvokeStaticFunction, 
01219                         function_to_bind); }

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

Definition at line 1221 of file Delegate.h.

01221                                                                                          {
01222         return (m_Closure.GetClosureThis()->*(m_Closure.GetClosureMemPtr()))(p1, p2, p3, p4, p5); }

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

Definition at line 1231 of file Delegate.h.

01231                                                {
01232         return IsEmpty()? 0: &SafeBoolStruct::m_nonzero;
01233     }

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

Definition at line 1235 of file Delegate.h.

01235                                                           {
01236                 return m_Closure.IsEqualToStaticFuncPtr(funcptr);       }

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

Definition at line 1237 of file Delegate.h.

01237                                                           { 
01238                 return !m_Closure.IsEqualToStaticFuncPtr(funcptr);    }

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

Definition at line 1239 of file Delegate.h.

01239                                         {       // Is it bound to anything?
01240                         return !m_Closure; }

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

Definition at line 1241 of file Delegate.h.

01241                                         {
01242                         return !m_Closure; }

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

Definition at line 1243 of file Delegate.h.

01243 { m_Closure.Clear();}

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

Definition at line 1246 of file Delegate.h.

01246 { return m_Closure; }

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

Definition at line 1247 of file Delegate.h.

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

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

Definition at line 1250 of file Delegate.h.

01250                                                                                                   {
01251         return (*(m_Closure.GetStaticFunction()))(p1, p2, p3, p4, p5); }


Member Data Documentation

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

Definition at line 1177 of file Delegate.h.


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