BloombergLP::bdlt::Timetable::Timetable

Constructors

Synopses

Declared in <bdlt_timetable.h>

Create an empty Timetable (i.e., a timetable having no transitions) whose initial transition code is k_UNSET_TRANSITION_CODE. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

explicit
Timetable(bslma::Allocator* basicAllocator = 0);
» more...

Create a timetable having the value of the specified original timetable. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used.

Timetable(
    Timetable const& original,
    bslma::Allocator* basicAllocator = 0);
» more...

Create a timetable having a valid range from the specified firstDate through the specified lastDate and having the optionally specified initialTransitionCode. If initialTransitionCode is not specified, the initial transition code is set to k_UNSET_TRANSITION_CODE. Optionally specify a basicAllocator used to supply memory. If basicAllocator is 0, the currently installed default allocator is used. The behavior is undefined unless firstDate <= lastDate, and 0 <= initialTransitionCode or k_UNSET_TRANSITION_CODE == initialTransitionCode.

Timetable(
    Date const& firstDate,
    Date const& lastDate,
    int initialTransitionCode = k_UNSET_TRANSITION_CODE,
    bslma::Allocator* basicAllocator = 0);
» more...