index previous next




file name: dmsgtemp.hpp
classification: simulation
contents: class CDelayList, struct SDelayMcb, struct SDelayRecvMcb, struct SDelaySendMcb
derived from: class ACSortedArray
use: a list class for storing pointers to objects of type SDelayMcb with a sort key of type double; duplicates are allowed


Note: the list class was generated from duptemp.hpp, and its functions have the same behaviour as those of the base class.

A new function was added, which was not tested:

 SDelayMcb* RemoveFirst (): Removes and returnes the first object from the list. If the list is empty, NULL is returned.


 struct SDelayMcb: used for storing messages together with their delivery times. The stucture contains either a send or a receive message, thus the sendData and receiveData structures are grouped in a union and the send member is used to decide between them.


 struct SRecvDelayMcb: derived from SDelayMcb. The structure is used to store incoming messages. The inherited member send must be set to False.


 struct SSendDelayMcb: derived from SDelayMcb. The structure is used to store outgoing messages. The inherited member send must be set to True.


global items used:


last modified: Fri Feb 5 18:56:11 1999