This class implements a value‐semantic repository of datetime‐indexed state transitions over a valid range of dates. This valid range, [firstDate() .. lastDate()], spans the first and last dates of a timetable's accessible contents. A timetable can be "populated" with state transitions via a suite of "add" methods. Note that the behavior of requesting any timetable information for a supplied date whose value is outside the current valid range for that timetable is undefined.
Synopsis
Declared in <bdlt_timetable.h>
class Timetable;
Type Aliases
Enums
Name |
Member Functions
Name |
Description |
|
Constructors |
Assign to this timetable the value of the specified |
|
|
|
Add transitions to this timetable that occur at the specified |
|
Return the allocator used by this object to supply memory. |
|
Return an iterator referring to the first transition in this timetable, or the past‐the‐end iterator if this timetable is empty. The iterator remains valid as long as this timetable exists, and the number of transitions within this timetable does not change. |
|
Return the past‐the‐end iterator for this timetable. The iterator remains valid as long as this timetable exists, and the number of transitions within this timetable does not change. |
|
Return a |
|
Return the transition code that is in effect at the start of this timetable (see |
|
Return |
|
Return a |
|
Return the number of days in the valid range of this timetable, which is defined to be 0 if this timetable is empty, and |
|
Format this object to the specified output |
|
Remove all transitions from this timetable. The removal of a transition invalidates all iterators. |
|
|
|
|
|
Reset this timetable to the default constructed (empty) state. All associated iterators are invalidated. |
|
Set the transition code in effect at the start of this timetable to the specified |
|
Set the range of this timetable using the specified |
|
Efficiently exchange the value of this object with the value of the specified |
|
|
Friends
Name |
Description |
Pass the specified |
|
Return |
|
Return |
|
Provide read‐only, sequential access in increasing (chronological) order to the transitions in a |