|
Timetabler
|
Class for a slot. More...
#include <slot.h>


Public Member Functions | |
| Slot (std::string, IsMinor, std::vector< SlotElement >) | |
| Constructs the Slot object. More... | |
| bool | operator== (const Slot &other) |
| Checks if two Slot objects are identical, which is if they have the same name. More... | |
| bool | isIntersecting (Slot &other) |
| Determines if two Slots are intersecting. More... | |
| void | addSlotElements (SlotElement) |
| Adds a slot element to the Slot. More... | |
| bool | isMinorSlot () |
| Determines if the Slot is a minor Slot. More... | |
| FieldType | getType () |
| Gets the type under the FieldType enum. More... | |
| std::string | getTypeName () |
| Gets the type name, which is "Slot". More... | |
| std::string | getName () |
| Gets the name of the Slot. More... | |
| bool | isMorningSlot () |
| Determines if the Slot is a morning Slot. More... | |
Class for a slot.
A slot is a collection of slot elements. A slot can be designated to be a minor slot, which means it is reserved for minor courses.
| Slot::Slot | ( | std::string | name, |
| IsMinor | isMinor, | ||
| std::vector< SlotElement > | slotElements | ||
| ) |
| void Slot::addSlotElements | ( | SlotElement | slotElement | ) |
| std::string Slot::getName | ( | ) |
|
virtual |
|
virtual |
| bool Slot::isIntersecting | ( | Slot & | other | ) |
| bool Slot::isMinorSlot | ( | ) |
Determines if the Slot is a minor Slot.
Definition at line 239 of file slot.cpp.
References IsMinor::getMinorType(), and isMinorCourse.
| bool Slot::isMorningSlot | ( | ) |
| bool Slot::operator== | ( | const Slot & | other | ) |
1.8.13