BloombergLP::bblb::ScheduleGenerationUtil::generateFromDayInterval

Load day-interval schedule dates into the specified schedule.

Synopsis

Declared in <bblb_schedulegenerationutil.h>

static
void
generateFromDayInterval(
    bsl::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    bdlt::Date const& example,
    int intervalInDays);

Description

Load, into the specified schedule, the chronologically increasing sequence of unique dates that are integral multiples of the specified intervalInDays away from the specified example date, and within the specified closed-interval [earliest, latest]. The behavior is undefined unless earliest <= latest and 1 <= intervalInDays.

Parameters

NameDescription
schedulereceives the generated date sequence
earliestinclusive start of the date window
latestinclusive end of the date window
examplereference date for the day-interval lattice
intervalInDaysspacing between schedule dates in days