Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   Related Pages  

CNEventHeapSched Class Reference

The class CNEventHeapSched is a replacement for CNEventScheduler. More...

#include <EventHeapSched.h>

Inheritance diagram for CNEventHeapSched::

CNEventBaseSched CNObject CNCL List of all members.

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.

CNEventpeek_event ()
 Peeks at next event or event with ID id. More...

CNEventpeek_event (CNEventID id)
 Peeks at next event or event with ID id. More...

CNEventnext_event ()
 Gets (and removes) the next CNEvent from the current heap.

void stop (bool with_obj=FALSE)
 Stop scheduler and delete pending events. More...

CNEventIteratorcreate_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.

CNObjectnew_object (CNParam *param=NIL)
 Create new Object.


Friends

class CNEventHIterator

Detailed Description

The class CNEventHeapSched is a replacement for CNEventScheduler.

From the user's point of view, it is completely compatible, but it differs in the internally used datastructures and algorithms.


Member Function Documentation

CNEvent* CNEventHeapSched::peek_event CNEventID    id [virtual]
 

Peeks at next event or event with ID id.

Returns pointer to event, or NIL if not available.

Reimplemented from CNEventBaseSched.

CNEvent* CNEventHeapSched::peek_event   [virtual]
 

Peeks at next event or event with ID id.

Returns pointer to event, or NIL if not available.

Reimplemented from CNEventBaseSched.

void CNEventHeapSched::stop bool    with_obj = FALSE [virtual]
 

Stop scheduler and delete pending events.

If {with_obj} is set to {TRUE} all objects of pending events are deleted, too.

Reimplemented from CNEventBaseSched.


The documentation for this class was generated from the following file:
Generated on Fri Feb 1 19:54:54 2002 for CNCL by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001