CEventQueueEntry Class
class CEventQueueEntry
Encapsulates an event entry in an event queue. It wraps a pointer to IEvent and takes care of reference counting. In addition, it stores a priority value for the event queue entry. Comparison operators are overloaded and implemented by comparing the priority value. This allows event queue entries to be used with standard collection classes and easily sorted.Defined in: EventQueue.h
Class Members
CEventQueueEntry(IEvent* pIEvent = NULL, const UINT nPriority = 0)
Construct an event queue entry from an event pointer and priority.
virtual ~CEventQueueEntry()
Release the event pointer.
CEventQueueEntry(const CEventQueueEntry& src)
Copy constructor.
CEventQueueEntry& operator=(const CEventQueueEntry& src)
Assign an event queue entry to this object.
operator IEvent*() const
Cast the event queue entry to an IEvent pointer.
bool operator>(const CEventQueueEntry& entry) const
Greater than operator.
bool operator<(const CEventQueueEntry& entry) const
Less than operator.
bool operator==(const CEventQueueEntry& entry) const
Compare for equivalence.
bool operator>=(const CEventQueueEntry& entry) const
Greater than or equal operator.
bool operator<=(const CEventQueueEntry& entry) const
Less than or equal operator.
IEvent* m_pIEvent
Pointer to event that this entry contains.
UINT m_nPriority
Priority for this event queue entry.