BloombergLP::bblb::ScheduleGenerationUtil::generateFromDayOfMonth

generateFromDayOfMonth overloads

Synopses

Declared in <bblb_schedulegenerationutil.h>

Load, into the specified schedule, the chronologically increasing sequence of unique dates that are on the specified targetDayOfMonth (or the last day of the month if targetDayOfMonth would be past the end of the month), integral multiples of the specified intervalInMonths away from the specified exampleYear and exampleMonth, and within the specified closed-interval [earliest, latest]. Optionally specify targetDayOfFeb to replace targetDayOfMonth whenever the month of a schedule entry is February. The behavior is undefined unless earliest <= latest, 1 <= exampleYear <= 9999, 1 <= exampleMonth <= 12, 1 <= intervalInMonths, 1 <= targetDayOfMonth <= 31, and 0 <= targetDayOfFeb <= 29.

static
void
generateFromDayOfMonth(
    bsl::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    int targetDayOfMonth,
    int targetDayOfFeb = 0);
» more...

See the corresponding bsl::vector overload above.

static
void
generateFromDayOfMonth(
    std::pmr::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    int targetDayOfMonth,
    int targetDayOfFeb = 0);
» more...

See the corresponding bsl::vector overload above.

static
void
generateFromDayOfMonth(
    std::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    int targetDayOfMonth,
    int targetDayOfFeb = 0);
» more...