#include <Delegate.h>
Public Types | |
typedef FastDelegate0 | type |
Public Member Functions | |
FastDelegate0 () | |
FastDelegate0 (const FastDelegate0 &x) | |
void | operator= (const FastDelegate0 &x) |
bool | operator== (const FastDelegate0 &x) const |
bool | operator!= (const FastDelegate0 &x) const |
bool | operator< (const FastDelegate0 &x) const |
bool | operator> (const FastDelegate0 &x) const |
template<class X, class Y> | |
FastDelegate0 (Y *pthis, DesiredRetType(X::*function_to_bind)()) | |
template<class X, class Y> | |
void | Bind (Y *pthis, DesiredRetType(X::*function_to_bind)()) |
template<class X, class Y> | |
FastDelegate0 (const Y *pthis, DesiredRetType(X::*function_to_bind)() const) | |
template<class X, class Y> | |
void | Bind (const Y *pthis, DesiredRetType(X::*function_to_bind)() const) |
FastDelegate0 (DesiredRetType(*function_to_bind)()) | |
void | operator= (DesiredRetType(*function_to_bind)()) |
void | Bind (DesiredRetType(*function_to_bind)()) |
RetType | Invoke () const |
RetType | operator() () 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::DelegateMemento & | GetMemento () |
void | SetMemento (const Internal::DelegateMemento &any) |
Private Types | |
typedef Internal::DefaultVoidToVoid< RetType >::type | DesiredRetType |
typedef DesiredRetType(*) | StaticFunctionPtr () |
typedef RetType(*) | UnvoidStaticFunctionPtr () |
typedef RetType(Internal::GenericClass::*) | GenericMemFn () |
typedef Internal::ClosurePtr< GenericMemFn, StaticFunctionPtr, UnvoidStaticFunctionPtr > | ClosureType |
typedef CppDelegate::FastDelegate0::SafeBoolStruct | UselessTypedef |
typedef StaticFunctionPtr SafeBoolStruct::* | unspecified_bool_type |
Private Member Functions | |
RetType | InvokeStaticFunction () const |
Private Attributes | |
ClosureType | m_Closure |
Classes | |
struct | SafeBoolStruct |
Definition at line 738 of file Delegate.h.
typedef Internal::DefaultVoidToVoid<RetType>::type CppDelegate::FastDelegate0< RetType >::DesiredRetType [private] |
Definition at line 740 of file Delegate.h.
typedef DesiredRetType(*) CppDelegate::FastDelegate0< RetType >::StaticFunctionPtr() [private] |
Definition at line 741 of file Delegate.h.
typedef RetType(*) CppDelegate::FastDelegate0< RetType >::UnvoidStaticFunctionPtr() [private] |
Definition at line 742 of file Delegate.h.
typedef RetType(Internal::GenericClass::*) CppDelegate::FastDelegate0< RetType >::GenericMemFn() [private] |
Definition at line 743 of file Delegate.h.
typedef Internal::ClosurePtr<GenericMemFn, StaticFunctionPtr, UnvoidStaticFunctionPtr> CppDelegate::FastDelegate0< RetType >::ClosureType [private] |
Definition at line 744 of file Delegate.h.
typedef FastDelegate0 CppDelegate::FastDelegate0< RetType >::type |
Definition at line 748 of file Delegate.h.
typedef struct CppDelegate::FastDelegate0::SafeBoolStruct CppDelegate::FastDelegate0< RetType >::UselessTypedef [private] |
typedef StaticFunctionPtr SafeBoolStruct::* CppDelegate::FastDelegate0< RetType >::unspecified_bool_type [private] |
Definition at line 799 of file Delegate.h.
CppDelegate::FastDelegate0< RetType >::FastDelegate0 | ( | ) | [inline] |
CppDelegate::FastDelegate0< RetType >::FastDelegate0 | ( | const FastDelegate0< RetType > & | x | ) | [inline] |
CppDelegate::FastDelegate0< RetType >::FastDelegate0 | ( | Y * | pthis, | |
DesiredRetType(X::*)() | function_to_bind | |||
) | [inline] |
Definition at line 766 of file Delegate.h.
00766 { 00767 m_Closure.bindmemfunc(Internal::implicit_cast<X*>(pthis), function_to_bind); }
CppDelegate::FastDelegate0< RetType >::FastDelegate0 | ( | const Y * | pthis, | |
DesiredRetType(X::*)() const | function_to_bind | |||
) | [inline] |
Definition at line 773 of file Delegate.h.
00773 { 00774 m_Closure.bindconstmemfunc(Internal::implicit_cast<const X*>(pthis), function_to_bind); }
CppDelegate::FastDelegate0< RetType >::FastDelegate0 | ( | DesiredRetType(*)() | function_to_bind | ) | [inline] |
void CppDelegate::FastDelegate0< RetType >::operator= | ( | const FastDelegate0< RetType > & | x | ) | [inline] |
bool CppDelegate::FastDelegate0< RetType >::operator== | ( | const FastDelegate0< RetType > & | x | ) | const [inline] |
bool CppDelegate::FastDelegate0< RetType >::operator!= | ( | const FastDelegate0< RetType > & | x | ) | const [inline] |
bool CppDelegate::FastDelegate0< RetType >::operator< | ( | const FastDelegate0< RetType > & | x | ) | const [inline] |
bool CppDelegate::FastDelegate0< RetType >::operator> | ( | const FastDelegate0< RetType > & | x | ) | const [inline] |
void CppDelegate::FastDelegate0< RetType >::Bind | ( | Y * | pthis, | |
DesiredRetType(X::*)() | function_to_bind | |||
) | [inline] |
Definition at line 769 of file Delegate.h.
00769 { 00770 m_Closure.bindmemfunc(Internal::implicit_cast<X*>(pthis), function_to_bind); }
void CppDelegate::FastDelegate0< RetType >::Bind | ( | const Y * | pthis, | |
DesiredRetType(X::*)() const | function_to_bind | |||
) | [inline] |
Definition at line 776 of file Delegate.h.
00776 { 00777 m_Closure.bindconstmemfunc(Internal::implicit_cast<const X *>(pthis), function_to_bind); }
void CppDelegate::FastDelegate0< RetType >::operator= | ( | DesiredRetType(*)() | function_to_bind | ) | [inline] |
void CppDelegate::FastDelegate0< RetType >::Bind | ( | DesiredRetType(*)() | function_to_bind | ) | [inline] |
Definition at line 785 of file Delegate.h.
00785 { 00786 m_Closure.bindstaticfunc(this, &FastDelegate0::InvokeStaticFunction, 00787 function_to_bind); }
RetType CppDelegate::FastDelegate0< RetType >::Invoke | ( | ) | const [inline] |
Definition at line 789 of file Delegate.h.
00789 { 00790 return (m_Closure.GetClosureThis()->*(m_Closure.GetClosureMemPtr()))(); }
RetType CppDelegate::FastDelegate0< RetType >::operator() | ( | ) | const [inline] |
CppDelegate::FastDelegate0< RetType >::operator unspecified_bool_type | ( | ) | const [inline] |
Definition at line 801 of file Delegate.h.
00801 { 00802 return IsEmpty()? 0: &SafeBoolStruct::m_nonzero; 00803 }
bool CppDelegate::FastDelegate0< RetType >::operator== | ( | StaticFunctionPtr | funcptr | ) | [inline] |
Definition at line 805 of file Delegate.h.
00805 { 00806 return m_Closure.IsEqualToStaticFuncPtr(funcptr); }
bool CppDelegate::FastDelegate0< RetType >::operator!= | ( | StaticFunctionPtr | funcptr | ) | [inline] |
Definition at line 807 of file Delegate.h.
00807 { 00808 return !m_Closure.IsEqualToStaticFuncPtr(funcptr); }
bool CppDelegate::FastDelegate0< RetType >::operator! | ( | ) | const [inline] |
Definition at line 809 of file Delegate.h.
00809 { // Is it bound to anything? 00810 return !m_Closure; }
bool CppDelegate::FastDelegate0< RetType >::IsEmpty | ( | ) | const [inline] |
void CppDelegate::FastDelegate0< RetType >::Clear | ( | ) | [inline] |
const Internal::DelegateMemento& CppDelegate::FastDelegate0< RetType >::GetMemento | ( | ) | [inline, protected] |
void CppDelegate::FastDelegate0< RetType >::SetMemento | ( | const Internal::DelegateMemento & | any | ) | [inline, protected] |
RetType CppDelegate::FastDelegate0< RetType >::InvokeStaticFunction | ( | ) | const [inline, private] |
Definition at line 819 of file Delegate.h.
00819 { 00820 return (*(m_Closure.GetStaticFunction()))(); }
ClosureType CppDelegate::FastDelegate0< RetType >::m_Closure [private] |
Definition at line 745 of file Delegate.h.
MTÜ TTÜ Robotiklubi |