file name: msgtemp.hpp
classification: pure simulation
contents: class CMessageList, struct SMcb
derived from: class ACSortedArray
use: a list class for storing pointers to objects of type SMcb
with a sort key of type double; duplicates are allowed
Note: the class was generated from duptemp.hpp,
and its functions have the same behaviour as those of the base class.
struct
SMcb: used for storing messages together with their delivery times.
- SMsg *msg: a pointer to the message itself
- double deliveryTime: the time of delivery, which is also used
as the sort key
- ~SMsg(): deletes the msg object
A new function was added, which was not tested:
SMcb*
RemoveFirst (): Removes and returnes the first object from the list.
If the list is empty, NULL is returned.
global items used:
last modified: Fri Feb 5 18:56:27 1999