#include <EventHeapSched.h>
Inheritance diagram for CNEventHeapSched::

Public Methods | |
| void | add_event (CNEvent *ev) |
| Adds an event to an event handler. | |
| void | send_event (CNEvent *ev) |
| Sends an event to an event handler. | |
| void | delete_event (CNEventID id, bool with_obj=FALSE) |
| Delete event with ID id from list. | |
| void | delete_events (CNEventHandler *evh, bool to=TRUE, bool with_obj=FALSE) |
| Deletes all events from the list that are addressed to or are comming from event handler evh. | |
| CNEvent * | peek_event () |
| Peeks at next event or event with ID id. More... | |
| CNEvent * | peek_event (CNEventID id) |
| Peeks at next event or event with ID id. More... | |
| CNEvent * | next_event () |
| Gets (and removes) the next CNEvent from the current heap. | |
| void | stop (bool with_obj=FALSE) |
| Stop scheduler and delete pending events. More... | |
| CNEventIterator * | create_iterator () |
| create event iterator. | |
| CNEventHeapSched () | |
| Default Constructor. | |
| CNEventHeapSched (CNParam *param) | |
| Initializes CNEvebtHeapSched with CNParam. | |
| ~CNEventHeapSched () | |
| Default Destructor. | |
| virtual CNClassDesc | class_desc () const |
| Returns the class description (pointer to instance of CNClass) for runtime type information. | |
| virtual bool | is_a (CNClassDesc desc) const |
| Checks Type. | |
| virtual void | print (ostream &strm=cout) const |
| Print/debug output. | |
| virtual void | dump (ostream &strm=cout) const |
| Debug output. | |
Static Public Methods | |
| CNEventHeapSched * | cast_from_object (CNObject *obj) |
| Safes type Cast. | |
| CNObject * | new_object (CNParam *param=NIL) |
| Create new Object. | |
Friends | |
| class | CNEventHIterator |
From the user's point of view, it is completely compatible, but it differs in the internally used datastructures and algorithms.
|
|
Peeks at next event or event with ID id.
Returns pointer to event, or Reimplemented from CNEventBaseSched. |
|
|
Peeks at next event or event with ID id.
Returns pointer to event, or Reimplemented from CNEventBaseSched. |
|
|
Stop scheduler and delete pending events. If {with_obj} is set to {TRUE} all objects of pending events are deleted, too. Reimplemented from CNEventBaseSched. |
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001