BloombergLP::bblb::ScheduleGenerationUtil::generateFromDayOfWeekInMonth

generateFromDayOfWeekInMonth overloads

Synopses

Declared in <bblb_schedulegenerationutil.h>

Load day-of-week-in-month schedule dates into the specified schedule.

static
void
generateFromDayOfWeekInMonth(
    bsl::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    bdlt::DayOfWeek::Enum dayOfWeek,
    int occurrenceWeek);
» more...

See the corresponding bsl::vector overload above.

static
void
generateFromDayOfWeekInMonth(
    std::pmr::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    bdlt::DayOfWeek::Enum dayOfWeek,
    int occurrenceWeek);
» more...

See the corresponding bsl::vector overload above.

static
void
generateFromDayOfWeekInMonth(
    std::vector<bdlt::Date>* schedule,
    bdlt::Date const& earliest,
    bdlt::Date const& latest,
    int exampleYear,
    int exampleMonth,
    int intervalInMonths,
    bdlt::DayOfWeek::Enum dayOfWeek,
    int occurrenceWeek);
» more...

Parameters

NameDescription
schedulereceives the generated date sequence
earliestinclusive start of the date window
latestinclusive end of the date window
exampleYearreference year for the interval lattice
exampleMonthreference month for the interval lattice
intervalInMonthsspacing between schedule months
dayOfWeekweekday required in occurrenceWeek
occurrenceWeekweek-of-month index in the range [1 .. 4]