27 #ifndef _CEGUISubscriberSlot_h_
28 #define _CEGUISubscriberSlot_h_
30 #include "CEGUI/Base.h"
31 #include "CEGUI/FreeFunctionSlot.h"
32 #include "CEGUI/FunctorCopySlot.h"
33 #include "CEGUI/FunctorReferenceSlot.h"
34 #include "CEGUI/FunctorPointerSlot.h"
35 #include "CEGUI/MemberFunctionSlot.h"
36 #include "CEGUI/FunctorReferenceBinder.h"
82 return (*d_functor_impl)(args);
91 return d_functor_impl != 0;
145 #endif // end of guard _CEGUISubscriberSlot_h_
SubscriberSlot(bool(T::*function)(const EventArgs &), T *obj)
Creates a SubscriberSlot that is bound to a member function.
Definition: SubscriberSlot.h:107
Slot template class that creates a functor that calls back via a functor object pointer.
Definition: FunctorPointerSlot.h:41
Slot template class that creates a functor that calls back via a copy of a functor object...
Definition: FunctorCopySlot.h:41
Definition: MemoryAllocatedObject.h:109
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
Slot template class that creates a functor that calls back via a functor object reference.
Definition: FunctorReferenceSlot.h:41
SubscriberSlot class which is used when subscribing to events.
Definition: SubscriberSlot.h:51
SubscriberSlot(const T &functor)
Creates a SubscriberSlot that is bound to a copy of a functor object.
Definition: SubscriberSlot.h:125
bool operator()(const EventArgs &args) const
Invokes the slot functor that is bound to this Subscriber. Returns whatever the slot returns...
Definition: SubscriberSlot.h:80
Slot template class that creates a functor that calls back via a class member function.
Definition: MemberFunctionSlot.h:41
Defines abstract interface which will be used when constructing various functor objects that bind slo...
Definition: SlotFunctorBase.h:43
bool connected() const
Returns whether the SubscriberSlot is internally connected (bound).
Definition: SubscriberSlot.h:89
SubscriberSlot(const FunctorReferenceBinder< T > &binder)
Creates a SubscriberSlot that is bound to a functor object reference.
Definition: SubscriberSlot.h:116
bool( SlotFunction)(const EventArgs &)
Slot function type.
Definition: FreeFunctionSlot.h:43
SubscriberSlot(T *functor)
Creates a SubscriberSlot that is bound to a functor pointer.
Definition: SubscriberSlot.h:134
Class that enables the creation of a reference binding for a functor object to be used as a callback ...
Definition: FunctorReferenceBinder.h:41