IT++ Logo Newcom Logo

itpp::Base_Event Class Reference

Base Event Class. More...

#include <itpp/protocol/events.h>

Inheritance diagram for itpp::Base_Event:

itpp::Data_Event< ObjectType, DataType > itpp::Event< ObjectType > List of all members.

Public Member Functions

 Base_Event (const Ttype delta_time)
 Schedule an event at time delta_time from now.
virtual ~Base_Event ()
 Destructor.
void cancel ()
 Cancel an event.

Protected Member Functions

virtual void exec (void)=0

Protected Attributes

Ttype delta_t
Ttype expire_t
bool active
unsigned long long int id

Static Protected Attributes

static unsigned long long int global_id = 0

Friends

class Base_Signal
class Event_Queue
struct Compare_Base_Event_Times

Detailed Description

Base Event Class.

An abstract Base class of Events that can be used to derive new events. All Event classes need to define the exec() function which is called when the event expires. An event has an execution time and an id.

Definition at line 57 of file events.h.


Constructor & Destructor Documentation

itpp::Base_Event::Base_Event ( const Ttype  delta_time  )  [inline]

Schedule an event at time delta_time from now.

Definition at line 66 of file events.h.

References active, delta_t, expire_t, global_id, and it_assert.

virtual itpp::Base_Event::~Base_Event (  )  [inline, virtual]

Destructor.

Definition at line 75 of file events.h.


Member Function Documentation

void itpp::Base_Event::cancel (  )  [inline]

Cancel an event.

Definition at line 78 of file events.h.

References active.

Referenced by itpp::Signal< DataType >::cancel(), and itpp::Signal< DataType >::~Signal().


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

Generated on Wed Apr 18 11:45:40 2007 for IT++ by Doxygen 1.5.2