![]() |
VR-Forces 4.0.4 Class Documentation
|
File: recTimer.h. More...

Public Member Functions | |
| DtRecurringTimer (const DtClock *clock, const unsigned int type, const DtTime recurTime, const DtTimerCallbackFcn callback, void *usr) | |
| The usr pointer points to some user-specified data that will be passed in to the given callback when the timer fires. | |
| virtual | ~DtRecurringTimer () |
| virtual void | fire () |
| Sets off (fires) the timer. | |
Protected Member Functions | |
| DtRecurringTimer & | operator= (const DtRecurringTimer &orig) |
| not defined | |
Protected Attributes | |
| const DtTime | myRecurTime |
| const DtClock * | myClock |
File: recTimer.h.
Class: DtRecurringTimer
Description: A recurring timer resets itself after firing to fire 'recurTime' seconds after the time at which it fired.
| DtRecurringTimer::DtRecurringTimer | ( | const DtClock * | clock, |
| const unsigned int | type, | ||
| const DtTime | recurTime, | ||
| const DtTimerCallbackFcn | callback, | ||
| void * | usr | ||
| ) |
The usr pointer points to some user-specified data that will be passed in to the given callback when the timer fires.
The usr pointer is owned by the caller (who is therefore responsible for destroying it) and it should not be modified by this class in any way.
| virtual DtRecurringTimer::~DtRecurringTimer | ( | ) | [virtual] |
| DtRecurringTimer& DtRecurringTimer::operator= | ( | const DtRecurringTimer & | orig | ) | [protected] |
not defined
| virtual void DtRecurringTimer::fire | ( | ) | [virtual] |
Sets off (fires) the timer.
Sets the fired state to true. If a callback exists, invokes the callback. If myScheduler has been set, calls scheduler's reSort() member passing in this object as the argument.
Reimplemented from DtTimer.
const DtTime DtRecurringTimer::myRecurTime [protected] |
const DtClock* DtRecurringTimer::myClock [protected] |