IT++ Logo Newcom Logo

itpp::Event_Queue Class Reference

Event Queue class. More...

#include <itpp/protocol/events.h>

List of all members.

Public Member Functions

 Event_Queue ()
 Constructor.
 ~Event_Queue ()
 Destructor.

Static Public Member Functions

void add (Base_Event *e)
 Add event to Queue.
Ttype now ()
 Return current time.
void start ()
 Start executing events.
void stop ()
 Stop execution of events.
void clear ()
 Remove all events.

Friends

class Base_Signal


Detailed Description

Event Queue class.

A class for storing and executing events. Events can be added to the queue and when the start() is called all events will be executed. Observe that Events need to be created before they are added to the queue by calling an appropriate constructor. However, expired events are destroyed automatically (the destructor is called).

Definition at line 108 of file events.h.


Constructor & Destructor Documentation

itpp::Event_Queue::Event_Queue  )  [inline]
 

Constructor.

Definition at line 113 of file events.h.

itpp::Event_Queue::~Event_Queue  )  [inline]
 

Destructor.

Definition at line 115 of file events.h.


Member Function Documentation

void itpp::Event_Queue::add Base_Event e  )  [static]
 

Add event to Queue.

Definition at line 48 of file events.cpp.

References itpp::Base_Event::delta_t, and itpp::Base_Event::expire_t.

Ttype itpp::Event_Queue::now  )  [inline, static]
 

Return current time.

Definition at line 120 of file events.h.

void itpp::Event_Queue::start  )  [static]
 

Start executing events.

Definition at line 70 of file events.cpp.

void itpp::Event_Queue::stop  )  [static]
 

Stop execution of events.

Definition at line 76 of file events.cpp.

Referenced by clear().

void itpp::Event_Queue::clear  )  [static]
 

Remove all events.

Definition at line 81 of file events.cpp.

References stop().


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

Generated on Fri Jan 11 08:51:43 2008 for IT++ by Doxygen 1.3.9.1