Go to the first, previous, next, last section, table of contents.


CNEventIterator -- iterate through event list

SYNOPSIS

#include <CNCL/EventLIterator.h> #include <CNCL/EventHIterator.h>

TYPE

CN_EVENTLITERATOR CN_EVENTHITERATOR

BASE CLASSES

CNObject

DERIVED CLASSES

None

RELATED CLASSES

CNEvent, CNEventScheduler, CNEventHeapScheduler

DESCRIPTION

The classes CNEventLIterator and CNEventHIterator are used to step through the list of events. Single events may be deleted. The classes can only be created on the heap by calling the member function create_iterator of the current scheduler.

CNEventLIterator and CNEventHIterator provide in addition to the member functions required by CNCL:

CNEvent *next_event();
Returns an event every time it is called. In case the CNEventHeapSched is used it can not be guaranteed that the same event is delivered only once. Furthermore the order in which the events are delivered needn't obey any rule. It is however guaranteed that every event will be returned at least once.
void delete_current_event()
Deletes the event last returned by next_event().


Go to the first, previous, next, last section, table of contents.