ot::EventQueueImplementation Class Reference
[Core Classes]

#include <EventQueueImplementation.h>

Inheritance diagram for ot::EventQueueImplementation:

Inheritance graph
[legend]
List of all members.

Detailed Description

Helper class that implements the EventQueue interface using a STL deque container. Some classes do not need the implementation of the EventQeue interfaces while others depend on it. The later should derive from this class.
Author:
Gerhard Reitmayr


Public Member Functions

virtual ~EventQueueImplementation ()
 Destructor method clears queue.
virtual EventgetEvent (unsigned int number=0)
virtual EventgetEventNearTime (double time)
virtual unsigned int getSize ()

Protected Member Functions

void insertAtTime (Event &event)

Protected Attributes

EventQueue queue
 queue of events


Constructor & Destructor Documentation

ot::EventQueueImplementation::~EventQueueImplementation  )  [virtual]
 

Destructor method clears queue.


Member Function Documentation

Event & ot::EventQueueImplementation::getEvent unsigned int  number = 0  )  [virtual]
 

returns the event number n back in time starting with the newest event for n = 0.

Parameters:
number the number of the event to be retrieved
Returns:
reference to the Event

Reimplemented in ot::EventQueueNode.

Event & ot::EventQueueImplementation::getEventNearTime double  time  )  [virtual]
 

returns the event closes to the given point in time

Parameters:
time point in the the event should be closest to
Returns:
reference to the found event

Reimplemented in ot::EventQueueNode.

unsigned int ot::EventQueueImplementation::getSize  )  [virtual]
 

returns the size of the queue

Reimplemented in ot::EventQueueNode.

void ot::EventQueueImplementation::insertAtTime Event event  )  [protected]
 

inserts an event so that it is in order in time with the other events.

Parameters:
event timestamped event that is inserted


Member Data Documentation

EventQueue ot::EventQueueImplementation::queue [protected]
 

queue of events


The documentation for this class was generated from the following files:
Generated on Wed Feb 28 15:29:01 2007 for NaviTrack by  doxygen 1.4.6