Homepage Demos Overview Downloads Tutorials Reference
Credits
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages | Search

EventRouter::TimerEntry Struct Reference

#include <EventRouter.h>

List of all members.


Detailed Description

Contains all the information needed to maintain a timer by the EventRouter.

Definition at line 118 of file EventRouter.h.

Public Member Functions

 TimerEntry (unsigned int nxt)
 constructors an entry using the given value for next - useful for with TimerEntryPtrCmp

 TimerEntry (EventListener *e, unsigned int s, unsigned int d, bool r)
 constructs with the given values, sets next field automatically
See also:
next


 TimerEntry (const TimerEntry &t)
 just does the default, i'm just being explicit since there's a pointer (no deep copy!)

TimerEntry operator= (const TimerEntry &t)
 just does the default, i'm just being explicit since there's a pointer (no deep copy!)

void Set (unsigned int d, bool r)
 will reset timer


Public Attributes

EventListenerel
 the listener to fire at

unsigned int sid
 the source id to fire with

unsigned int delay
 the delay until firing

unsigned int next
 the time at which this timer will go off next

bool repeat
 if true, will reset after firing, else will be deleted


Constructor & Destructor Documentation

EventRouter::TimerEntry::TimerEntry unsigned int  nxt  )  [inline, explicit]
 

constructors an entry using the given value for next - useful for with TimerEntryPtrCmp

Definition at line 120 of file EventRouter.h.

References delay, el, next, repeat, and sid.

EventRouter::TimerEntry::TimerEntry EventListener e,
unsigned int  s,
unsigned int  d,
bool  r
[inline]
 

constructs with the given values, sets next field automatically

See also:
next

Definition at line 122 of file EventRouter.h.

References delay, el, get_time(), next, repeat, and sid.

EventRouter::TimerEntry::TimerEntry const TimerEntry t  )  [inline]
 

just does the default, i'm just being explicit since there's a pointer (no deep copy!)

Definition at line 124 of file EventRouter.h.

References delay, el, next, repeat, and sid.


Member Function Documentation

TimerEntry EventRouter::TimerEntry::operator= const TimerEntry t  )  [inline]
 

just does the default, i'm just being explicit since there's a pointer (no deep copy!)

Definition at line 126 of file EventRouter.h.

References delay, el, next, repeat, and sid.

void EventRouter::TimerEntry::Set unsigned int  d,
bool  r
[inline]
 

will reset timer

Parameters:
d the time from now when the timer should go off (in milliseconds)
r true if the timer should automatically repeat

Definition at line 130 of file EventRouter.h.

References delay, get_time(), next, and repeat.


Member Data Documentation

unsigned int EventRouter::TimerEntry::delay
 

the delay until firing

Definition at line 133 of file EventRouter.h.

EventListener* EventRouter::TimerEntry::el
 

the listener to fire at

Definition at line 131 of file EventRouter.h.

unsigned int EventRouter::TimerEntry::next
 

the time at which this timer will go off next

Definition at line 134 of file EventRouter.h.

bool EventRouter::TimerEntry::repeat
 

if true, will reset after firing, else will be deleted

Definition at line 135 of file EventRouter.h.

unsigned int EventRouter::TimerEntry::sid
 

the source id to fire with

Definition at line 132 of file EventRouter.h.


The documentation for this struct was generated from the following file:
Tekkotsu v1.4
Generated Sat Jul 19 00:08:56 2003 by Doxygen 1.3.2