43 #include "eventsubscriber.h"
44 #include "eventsubscriberslot.h"
62 typedef std::pair<UInt8,EventSubscriberSlot*>
SlotPair;
82 const String& GetName()
const;
125 Whole UnsubscribeAll();
132 SlotIterator SubscriberSlotBegin();
135 SlotIterator SubscriberSlotEnd();
136 #ifndef SWIG // Since these functions differ only by constness, they make no sense to most(all?) scripting languages
139 ConstSlotIterator SubscriberSlotBegin()
const;
142 ConstSlotIterator SubscriberSlotEnd()
const;
std::pair< UInt8, EventSubscriberSlot * > SlotPair
An std::pair type for working with stored EventSubscriberSlot instances.
Basic class definition for functors used by a FunctorSubscriberSlot.
bool Boole
Generally acts a single bit, true or false.
This class represents a given event that can be subscribed to and/or fired.
This is a base class for all classes that subscribe to events.
A simple reference counting pointer.
const String EventName
The name of this Event.
SlotContainer::const_iterator ConstSlotIterator
Const Iterator type for EventSubscriberSlot instances stored by this class.
std::vector< EventSubscriberSlot * > SlotContainer
Basic container type for EventSubscriberSlot storage by this class.
The interface for a script.
void( SubscriberFunction)(EventArgumentsPtr Args)
This is a convenience typedef for a c-style method that accepts EventArguments.
This class represents a slot in an event that can be subscribed to via subscribers, functors, or methods.
The bulk of the engine components go in this namspace.
unsigned long Whole
Whole is an unsigned integer, it will be at least 32bits in size.
SlotContainer::iterator SlotIterator
Iterator type for EventSubscriberSlot instances stored by this class.
std::string String
A datatype used to a series of characters.
SlotContainer Slots
A container storing all the EventSubscriberSlot instances to subscribers.