EventTable< Source, Event >::DelayedEvent Class Reference

Inheritance diagram for EventTable< Source, Event >::DelayedEvent:

Inheritance graph
[legend]
Collaboration diagram for EventTable< Source, Event >::DelayedEvent:

Collaboration graph
[legend]
List of all members.

Detailed Description

template<typename Source, typename Event>
class EventTable< Source, Event >::DelayedEvent

DelayedEvent is an event that is to be emitted after specified time has passed.

DelayedEvents can be invalidated at any time before their emitting via setting the shared pointer m_valid to false. Trackable-derived objects automatically set this pointer to false upon destruction.

Definition at line 536 of file event.h.


Public Member Functions

 DelayedEvent (Source src, Event evt, uint32_t delay)
 Constructor.
 operator uint64_t () const
 Implicit conversion to uint64_t returns m_postTime.

Private Attributes

uint64_t m_postTime
 Posting time.

Friends

bool operator< (const DelayedEvent &x, const DelayedEvent &y)
 Comparison operator, ordered by m_postTime member.

Constructor & Destructor Documentation

template<typename Source, typename Event>
EventTable< Source, Event >::DelayedEvent::DelayedEvent Source  src,
Event  evt,
uint32_t  delay
[inline]
 

Constructor.

Parameters:
src Source object
evt Event object
delay Delay, in milliseconds

Definition at line 545 of file event.h.

References EventTable< Source, Event >::DelayedEvent::m_postTime.


Member Function Documentation

template<typename Source, typename Event>
EventTable< Source, Event >::DelayedEvent::operator uint64_t  )  const [inline]
 

Implicit conversion to uint64_t returns m_postTime.

Definition at line 556 of file event.h.

References EventTable< Source, Event >::DelayedEvent::m_postTime.


Friends And Related Function Documentation

template<typename Source, typename Event>
bool operator< const DelayedEvent x,
const DelayedEvent y
[friend]
 

Comparison operator, ordered by m_postTime member.

Definition at line 550 of file event.h.


Member Data Documentation

template<typename Source, typename Event>
uint64_t EventTable< Source, Event >::DelayedEvent::m_postTime [private]
 

Posting time.

Definition at line 558 of file event.h.

Referenced by EventTable< Source, Event >::DelayedEvent::DelayedEvent(), and EventTable< Source, Event >::DelayedEvent::operator uint64_t().


The documentation for this class was generated from the following file: