An Event class that executes a function when the event expires. More...
#include <itpp/protocol/events.h>
Public Member Functions | |
| Event (ObjectType *object_pointer, void(ObjectType::*object_function_pointer)(), const Ttype delta_time) | |
| Construct an Event to expire delta_time from now by calling the function (*object_pointer.*object_function_pointer)() | |
| virtual | ~Event () |
| Destructor. | |
| virtual void | exec (void) |
| Execute (call) the assigned function. | |
| void | cancel () |
| Cancel an event. | |
Protected Attributes | |
| Ttype | delta_t |
| ADD DOCUMENTATION HERE. | |
| Ttype | expire_t |
| ADD DOCUMENTATION HERE. | |
| bool | active |
| ADD DOCUMENTATION HERE. | |
| unsigned long long int | id |
| ADD DOCUMENTATION HERE. | |
Static Protected Attributes | |
| static unsigned long long int | global_id = 0 |
| ADD DOCUMENTATION HERE. | |
An Event class that executes a function when the event expires.
Since Events are objects you need supply both a pointer to the object and the function pointer to create the Event
|
inline |
|
inlinevirtual |
|
inlinevirtual |
Execute (call) the assigned function.
Implements itpp::Base_Event.
|
inlineinherited |
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 96 of file events.h.
Referenced by itpp::Event_Queue::add(), and itpp::Base_Event::Base_Event().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 98 of file events.h.
Referenced by itpp::Event_Queue::add(), itpp::Base_Event::Base_Event(), and itpp::Compare_Base_Event_Times::operator()().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 100 of file events.h.
Referenced by itpp::Base_Event::Base_Event(), and itpp::Base_Event::cancel().
|
protectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 102 of file events.h.
Referenced by itpp::Compare_Base_Event_Times::operator()().
|
staticprotectedinherited |
ADD DOCUMENTATION HERE.
Definition at line 104 of file events.h.
Referenced by itpp::Base_Event::Base_Event().
Generated on Tue Dec 10 2024 04:49:37 for IT++ by Doxygen 1.12.0