#include <UniEvent/TimerEventTracker.h>
Inheritance diagram for strmod::unievent::TimerEventTracker:
Public Methods | |
| TimerEventTracker () | |
| Construct using the ANSI C time function to provide an initial base. | |
| TimerEventTracker (const absolute_t &now) | |
Construct using now as an initial base. | |
| virtual | ~TimerEventTracker () |
| Nothing special or unexpected. | |
| virtual int | AreYouA (const lcore::ClassIdent &cid) const |
| Asks if a class is of a particular type, or publicly derived from that type. | |
| virtual void | postAt (const absolute_t &t, const EventPtr &ev) |
| Post an event at a particular time. | |
| virtual absolute_t | currentTime () const=0 |
| What time is it now?! | |
| unsigned int | postExpired (const absolute_t &now, Dispatcher *postto) |
| Post all expired timer events. | |
| interval_t | nextExpirationIn (const absolute_t &now, const interval_t &maxtime) const |
| Return the time of the next timer expiration, or maxtime. | |
| virtual bool | invariant () const |
| This should ALWAYS return true. It says whether the class invariant holds or not. | |
| virtual void | printState (::std::ostream &os) const |
| This should print out as much of the internal state of a class as would be needed to debug it properly. | |
Static Public Attributes | |
| const UNEVT_ClassIdent | identifier |
| Globally unique identifier for this class. | |
Protected Methods | |
| virtual const lcore::ClassIdent * | i_GetIdent () const |
| Returns the class identifier for the class the object actually is. | |
Definition at line 41 of file TimerEventTracker.h.
|
|
Asks if a class is of a particular type, or publicly derived from that type. Overriden in every derived class (with a static identifier member) to compare against the identifier, then call the AreYouA methods of all the superclasses.
Reimplemented from strmod::lcore::Debugable. Reimplemented in strmod::unievent::UnixEventPoll. Definition at line 55 of file TimerEventTracker.h. |
|
|
Returns the class identifier for the class the object actually is. Should always be overridden in any class that has a static identifier member. Reimplemented from strmod::lcore::Debugable. Reimplemented in strmod::unievent::UnixEventPoll. Definition at line 93 of file TimerEventTracker.h. |
|
|
This should ALWAYS return true. It says whether the class invariant holds or not. Your class invariant should be as strict as possible. The class invariant is used to detect when the class goes into a bad state, so all possible bad states should be caught by the invariant. Implements strmod::lcore::Debugable. Reimplemented in strmod::unievent::UnixEventPoll. Definition at line 89 of file TimerEventTracker.h. |
|
||||||||||||
|
Return the time of the next timer expiration, or maxtime.
Definition at line 158 of file TimerEventTracker.cxx. |
|
||||||||||||
|
Post all expired timer events.
now parameter that is >= the now parameter given in the previous call. In other words, the now parameter must monotonically increase in subsequent calls.
Also, the first Definition at line 95 of file TimerEventTracker.cxx. |
|
|
Globally unique identifier for this class. Every class that might need to be identified should have a public static const identifier object in it. Reimplemented from strmod::lcore::Debugable. Reimplemented in strmod::unievent::UnixEventPoll. |
1.3-rc1