CISC 2200 Project 4
Public Types | Public Member Functions | Public Attributes | List of all members
Event Struct Reference

This holds the information needed for an arrival or departure event. More...

Public Types

enum  EventKind { arrival, departure }
 Only two kinds of events.
 

Public Member Functions

 Event (EventKind theType=arrival, int theTime=0, int theLength=0)
 Constructor, as one might expect. More...
 

Public Attributes

EventKind type
 What kind of event this is.
 
int time
 Arrival or departure time of the event, as appropriate.
 
int length
 Duration of the event. A departure event has a duration of 0.
 

Detailed Description

This holds the information needed for an arrival or departure event.

Constructor & Destructor Documentation

Event::Event ( EventKind  theType = arrival,
int  theTime = 0,
int  theLength = 0 
)
inline

Constructor, as one might expect.

Parameters
theTypewhat kind of event this is (arrival or departure)
theTimearrival or departure time of the event, as appropriate
theLengthduration of the event.

The documentation for this struct was generated from the following file: