< Home

< Table of Contents

REFERENCE MANUAL

TimerTickEvent Class Reference

#include <hps.h>

Inheritance diagram for TimerTickEvent:
Event

Public Member Functions

EventClone () const
 
virtual bool Drop (Event const *in_that_event) const
 
virtual intptr_t Freshen () const
 
 TimerTickEvent ()
 
 TimerTickEvent (Event const &in_event)
 
- Public Member Functions inherited from Event
 Event (intptr_t in_channel=0)
 
intptr_t GetChannel () const
 
intptr_t GetClassID () const
 
Time GetTimeStamp () const
 
bool IsConsumable () const
 

Additional Inherited Members

- Public Types inherited from Event
enum  Status { Status::InProgress, Status::Completed, Status::Failed }
 
- Static Public Member Functions inherited from Event
static void operator delete (void *in_ptr, size_t in_size) throw ()
 
static void * operator new (size_t in_size)
 
- Protected Attributes inherited from Event
intptr_t channel
 
bool consumable
 

Detailed Description

The TimerTickEvent class is the event that will be triggered for each timer tick.

Constructor & Destructor Documentation

TimerTickEvent::TimerTickEvent ( )
inline

The default constructor creates a TimerTickEvent object.

TimerTickEvent::TimerTickEvent ( Event const &  in_event)
inline

This constructor converts an Event Object to a TimerTickEvent object.

Parameters
in_eventThe Event Object to be converted.

References Event::GetChannel().

Member Function Documentation

Event* TimerTickEvent::Clone ( ) const
inlinevirtual

Allocates and returns a copy of this TimerEvent.

Returns
A copy of this TimerEvent.

Implements Event.

virtual bool TimerTickEvent::Drop ( Event const *  in_that_event) const
inlinevirtual

Determines if this TimerTickEvent can be drop in favor of the following time tick event.

Parameters
in_that_eventEvent to compare with this TimerTickEvent.
Returns
true is this event can be dropped.

Reimplemented from Event.

virtual intptr_t TimerTickEvent::Freshen ( ) const
inlinevirtual

This optional function is used to determine if the current event can be dropped in favor of newer event of the same type if one is available.

Returns
A cookie representing the freshen category. Zero indicates a non-freshening event.

Reimplemented from Event.


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