Lugre::cTimer::cTimerRegistration Class Reference

commonly used by Timeout, Interval and FrameInterval More...

#include <lugre_timer.h>

List of all members.

Public Member Functions

 cTimerRegistration (cListener *pListener, void *iUserData, const size_t iTime, const size_t iInterval=0, const size_t iFrameInterval=0)
bool Trigger (const size_t iCurTime, const size_t iEvent)
 returns false if this registration should be removed
void Cancel ()

Public Attributes

size_t miTime
size_t miInterval
size_t miFrameInterval
 =0 for timeouts and frameintervals
size_t miIntervalCount
 =0 for timeouts and intervals
cSmartPtr< cListenermpListener
 incremented by one on each hit
void * miUserData
bool mbIsAlive


Detailed Description

commonly used by Timeout, Interval and FrameInterval

Definition at line 66 of file lugre_timer.h.


Constructor & Destructor Documentation

Lugre::cTimer::cTimerRegistration::cTimerRegistration ( cListener pListener,
void *  iUserData,
const size_t  iTime,
const size_t  iInterval = 0,
const size_t  iFrameInterval = 0 
) [inline]

Definition at line 75 of file lugre_timer.h.


Member Function Documentation

bool Lugre::cTimer::cTimerRegistration::Trigger ( const size_t  iCurTime,
const size_t  iEvent 
)

returns false if this registration should be removed

Definition at line 97 of file lugre_timer.cpp.

References mbIsAlive, miFrameInterval, miInterval, miIntervalCount, miTime, miUserData, mpListener, and PROFILE.

Referenced by Lugre::cTimer::StartFrame().

void Lugre::cTimer::cTimerRegistration::Cancel (  )  [inline]

Definition at line 82 of file lugre_timer.h.

References mbIsAlive.


Member Data Documentation

Definition at line 68 of file lugre_timer.h.

Referenced by Trigger().

=0 for timeouts and frameintervals

Definition at line 69 of file lugre_timer.h.

Referenced by Trigger().

=0 for timeouts and intervals

Definition at line 70 of file lugre_timer.h.

Referenced by Trigger().

incremented by one on each hit

Definition at line 71 of file lugre_timer.h.

Referenced by Trigger().

Definition at line 72 of file lugre_timer.h.

Referenced by Trigger().

Definition at line 73 of file lugre_timer.h.

Referenced by Cancel(), and Trigger().


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

Generated on Tue May 22 06:00:43 2012 for cpp by  doxygen 1.5.6