#include <itpp/protocol/events.h>
Inheritance diagram for itpp::Base_Event:
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 |
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.
itpp::Base_Event::Base_Event | ( | const Ttype | delta_time | ) | [inline] |
virtual itpp::Base_Event::~Base_Event | ( | ) | [inline, virtual] |
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().
Generated on Fri Jun 8 01:07:26 2007 for IT++ by Doxygen 1.5.2