struct Timetable { const TimetablePage& operator[](size_t i) const; size_t num_pages() const; static size_t num_pages(bool has_alternate_weeks); };
Represents an entire timetable (all pages). See TimetablePage
for details about what each page represents.
size_t num_pages() const;
The number of pages in this timetable.
const TimetablePage& operator[](size_t i) const;
Gets the i
th page of this
timetable.
static size_t num_pages(bool has_alternate_weeks);
Compute the number of pages that a timetable has based on whether it does
or not have alternate-week sections. This returns 2 if has_alternate_weeks
is false
, or 4 if it is true
.