#include <Delegate.h>
Public Types | |
typedef void(*) | Function (Controller &) |
typedef FastDelegate1< Controller & > | FastDelegate |
Public Member Functions | |
bool | Add (FastDelegate &addable) |
bool | Add (Function function) |
template<class X, class Y> | |
bool | Add (X *object, void(Y::*function)(Controller &)) |
template<class X, class Y> | |
bool | Add (const X *object, void(Y::*function)(Controller &) const) |
bool | RemoveAll (FastDelegate &removable) |
bool | RemoveAll (Function function) |
template<class X, class Y> | |
bool | RemoveAll (X *object, void(Y::*function)(Controller &)) |
template<class X, class Y> | |
bool | RemoveAll (const X *object, void(Y::*function)(Controller &) const) |
bool | Remove (FastDelegate &removable) |
bool | Remove (Function function) |
template<class X, class Y> | |
bool | Remove (X *object, void(Y::*function)(Controller &)) |
template<class X, class Y> | |
bool | Remove (const X *object, void(Y::*function)(Controller &) const) |
void | Clear () |
bool | IsEmpty () |
bool | operator! () |
bool | operator+= (Function function) |
bool | operator+= (FastDelegate &addable) |
bool | operator-= (Function function) |
bool | operator-= (FastDelegate &removable) |
~DataDelegate () | |
Private Member Functions | |
DataDelegate () | |
DataDelegate (Function function) | |
DataDelegate (const FastDelegate &_me) | |
template<class X, class Y> | |
DataDelegate (X *object, void(Y::*function)(Controller &)) | |
template<class X, class Y> | |
DataDelegate (const X *object, void(Y::*function)(Controller &) const) | |
void | Invoke (Controller &controller) const |
void | operator() (Controller &controller) const |
Private Attributes | |
DataDelegate< Controller > * | next |
FastDelegate | me |
Friends | |
class | DelegateController< Controller > |
template<class Delegate, class FastDelegate> | |
bool | Internal::AddFastDelegate (Delegate &delegate, FastDelegate &addable) |
template<class Delegate, typename Function> | |
bool | Internal::AddFunction (Delegate &delegate, Function function) |
template<class Delegate, class Object, typename MemberFunction> | |
bool | Internal::AddMemberFunction (Delegate &delegate, Object *object, MemberFunction function) |
template<class Delegate, class FastDelegate> | |
bool | Internal::RemoveAll (Delegate &delegate, FastDelegate &removable) |
template<class Delegate, class FastDelegate> | |
bool | Internal::Remove (Delegate &delegate, FastDelegate &removable) |
template<class Delegate> | |
void | Internal::Clear (Delegate &delegate) |
Definition at line 1725 of file Delegate.h.
typedef void(*) CppDelegate::DataDelegate< Controller >::Function(Controller &) |
Definition at line 1729 of file Delegate.h.
typedef FastDelegate1<Controller &> CppDelegate::DataDelegate< Controller >::FastDelegate |
Definition at line 1730 of file Delegate.h.
CppDelegate::DataDelegate< Controller >::DataDelegate | ( | ) | [inline, private] |
CppDelegate::DataDelegate< Controller >::DataDelegate | ( | Function | function | ) | [inline, private] |
CppDelegate::DataDelegate< Controller >::DataDelegate | ( | const FastDelegate & | _me | ) | [inline, private] |
CppDelegate::DataDelegate< Controller >::DataDelegate | ( | X * | object, | |
void(Y::*)(Controller &) | function | |||
) | [inline, private] |
CppDelegate::DataDelegate< Controller >::DataDelegate | ( | const X * | object, | |
void(Y::*)(Controller &) const | function | |||
) | [inline, private] |
CppDelegate::DataDelegate< Controller >::~DataDelegate | ( | ) | [inline] |
void CppDelegate::DataDelegate< Controller >::Invoke | ( | Controller & | controller | ) | const [inline, private] |
void CppDelegate::DataDelegate< Controller >::operator() | ( | Controller & | controller | ) | const [inline, private] |
bool CppDelegate::DataDelegate< Controller >::Add | ( | FastDelegate & | addable | ) | [inline] |
Definition at line 1765 of file Delegate.h.
01766 { 01767 return Internal::AddFastDelegate<DataDelegate<Controller>, FastDelegate>(*this, addable); 01768 01769 } // Add 1
bool CppDelegate::DataDelegate< Controller >::Add | ( | Function | function | ) | [inline] |
Definition at line 1771 of file Delegate.h.
01772 { 01773 return Internal::AddFunction<DataDelegate<Controller>, Function>(*this, function); 01774 01775 } // Add 2
bool CppDelegate::DataDelegate< Controller >::Add | ( | X * | object, | |
void(Y::*)(Controller &) | function | |||
) | [inline] |
Definition at line 1777 of file Delegate.h.
01778 { 01779 return Internal::AddMemberFunction<DataDelegate<Controller>, X, void (Y::*)(Controller &)>(*this, object, function); 01780 01781 } // Add 3
bool CppDelegate::DataDelegate< Controller >::Add | ( | const X * | object, | |
void(Y::*)(Controller &) const | function | |||
) | [inline] |
Definition at line 1783 of file Delegate.h.
01784 { 01785 return Internal::AddMemberFunction<DataDelegate<Controller>, const X, void (Y::*)(Controller &) const>(*this, object, function); 01786 01787 } // Add 4
bool CppDelegate::DataDelegate< Controller >::RemoveAll | ( | FastDelegate & | removable | ) | [inline] |
Definition at line 1789 of file Delegate.h.
01790 { 01791 return Internal::RemoveAll<DataDelegate<Controller>, Function>(*this, removable); 01792 01793 } // RemoveAll 1
bool CppDelegate::DataDelegate< Controller >::RemoveAll | ( | Function | function | ) | [inline] |
Definition at line 1795 of file Delegate.h.
01796 { 01797 FastDelegate removable(function); 01798 01799 return RemoveAll(removable); 01800 01801 } // RemoveAll 2
bool CppDelegate::DataDelegate< Controller >::RemoveAll | ( | X * | object, | |
void(Y::*)(Controller &) | function | |||
) | [inline] |
Definition at line 1803 of file Delegate.h.
01804 { 01805 FastDelegate removable(object, function); 01806 01807 return RemoveAll(removable); 01808 01809 } // RemoveAll 3
bool CppDelegate::DataDelegate< Controller >::RemoveAll | ( | const X * | object, | |
void(Y::*)(Controller &) const | function | |||
) | [inline] |
Definition at line 1811 of file Delegate.h.
01812 { 01813 FastDelegate removable(object, function); 01814 01815 return RemoveAll(removable); 01816 01817 } // RemoveAll 4
bool CppDelegate::DataDelegate< Controller >::Remove | ( | FastDelegate & | removable | ) | [inline] |
Definition at line 1819 of file Delegate.h.
01820 { 01821 return Internal::Remove<DataDelegate<Controller>, FastDelegate>(*this, removable); 01822 01823 } // Remove 1
bool CppDelegate::DataDelegate< Controller >::Remove | ( | Function | function | ) | [inline] |
Definition at line 1825 of file Delegate.h.
01826 { 01827 FastDelegate removable(function); 01828 01829 return Remove(removable); 01830 01831 } // Remove 2
bool CppDelegate::DataDelegate< Controller >::Remove | ( | X * | object, | |
void(Y::*)(Controller &) | function | |||
) | [inline] |
Definition at line 1833 of file Delegate.h.
01834 { 01835 FastDelegate removable(object, function); 01836 01837 return Remove(removable); 01838 01839 } // Remove 3
bool CppDelegate::DataDelegate< Controller >::Remove | ( | const X * | object, | |
void(Y::*)(Controller &) const | function | |||
) | [inline] |
Definition at line 1841 of file Delegate.h.
01842 { 01843 FastDelegate removable(object, function); 01844 01845 return Remove(removable); 01846 01847 } // Remove 4
void CppDelegate::DataDelegate< Controller >::Clear | ( | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::IsEmpty | ( | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::operator! | ( | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::operator+= | ( | Function | function | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::operator+= | ( | FastDelegate & | addable | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::operator-= | ( | Function | function | ) | [inline] |
bool CppDelegate::DataDelegate< Controller >::operator-= | ( | FastDelegate & | removable | ) | [inline] |
friend class DelegateController< Controller > [friend] |
Definition at line 1734 of file Delegate.h.
bool Internal::AddFastDelegate | ( | Delegate & | delegate, | |
FastDelegate & | addable | |||
) | [friend] |
bool Internal::AddFunction | ( | Delegate & | delegate, | |
Function | function | |||
) | [friend] |
bool Internal::AddMemberFunction | ( | Delegate & | delegate, | |
Object * | object, | |||
MemberFunction | function | |||
) | [friend] |
bool Internal::RemoveAll | ( | Delegate & | delegate, | |
FastDelegate & | removable | |||
) | [friend] |
bool Internal::Remove | ( | Delegate & | delegate, | |
FastDelegate & | removable | |||
) | [friend] |
void Internal::Clear | ( | Delegate & | delegate | ) | [friend] |
DataDelegate<Controller>* CppDelegate::DataDelegate< Controller >::next [private] |
Definition at line 1742 of file Delegate.h.
FastDelegate CppDelegate::DataDelegate< Controller >::me [private] |
Definition at line 1743 of file Delegate.h.
MTÜ TTÜ Robotiklubi |