Value‐semantic repository of datetime‐indexed state transitions.
Synopsis
Declared in <bdlt_timetable.h>
class Timetable;
Description
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.
Type Aliases
Name |
Description |
Type of this timetable's const iterator. |
Enums
Name |
Description |
Constants for timetable transition codes. |
Member Functions
Name |
Description |
|
Constructors |
Assign the value of |
|
|
|
Add transitions at |
|
Return the allocator used by this object. |
|
Return an iterator to the first transition in this timetable. |
|
Return the past‐the‐end iterator for this timetable. |
|
Return the earliest date in this timetable's valid range. |
|
Return the transition code that is in effect at the start of this timetable (see |
|
Return |
|
Return the latest date in this timetable's valid range. |
|
Return the number of days in this timetable's valid range. |
|
Format this timetable 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 initial transition code of this timetable. |
|
Set the valid range of this timetable to |
|
Exchange the value of this object with |
|
|
Friends
Name |
Description |
Pass |
|
Return |
|
Return |
|
Provide read‐only, sequential access in increasing (chronological) order to the transitions in a |