Timetabler
|
Class for a slot element. More...
#include <slot.h>
Public Member Functions | |
SlotElement (Time &, Time &, Day) | |
Constructs the SlotElement object. More... | |
bool | isIntersecting (SlotElement &other) |
Determines if two slot elements are intersecting. More... | |
bool | isMorningSlotElement () |
Determines if the SlotElement is a morning slot element. More... | |
Constructs the SlotElement object.
startTime | The start time | |
endTime | The end time | |
[in] | day | The day |
bool SlotElement::isIntersecting | ( | SlotElement & | other | ) |
Determines if two slot elements are intersecting.
Two slot elements are said to be intersecting if the Day is identical and there is an intersection in the start and end Times.
other | The SlotElement with which the comparison is being made |
bool SlotElement::isMorningSlotElement | ( | ) |
Determines if the SlotElement is a morning slot element.
A SlotElement is a morning SlotElement if the start time is in the morning.