This class provides a protocol for determining values based on dates according to derived implementations of specific day‐count conventions.

Synopsis

Declared in <bbldc_daterangedaycount.h>

class DateRangeDayCount;

Description

The methods firstDate and lastDate define a date range for which calculations are valid, to reflect the valid range of, say, a calendar required for the computations.

Member Functions

Name

Description

~DateRangeDayCount [destructor] [virtual]

Destroy this object.

daysDiff [virtual]

Return the (signed) number of days between two dates.

firstDate [virtual]

Return a reference providing non‐modifiable access to the earliest date in the valid range of this day‐count convention.

lastDate [virtual]

Return a reference providing non‐modifiable access to the latest date in the valid range of this day‐count convention.

yearsDiff [virtual]

Return the (signed fractional) number of years between two dates.

Derived Classes

Name

Description

BasicDateRangeDayCountAdapter

Adapter from a day‐count CONVENTION to bbldc::DateRangeDayCount.

CalendarDateRangeDayCountAdapter

Adapter from a calendar‐based day‐count CONVENTION to bbldc::DateRangeDayCount.

PeriodDateRangeDayCountAdapter

Adapter from a period‐based day‐count CONVENTION to bbldc::DateRangeDayCount.

TerminatedDateRangeDayCountAdapter

Adapter from a day‐count CONVENTION to bbldc::DateRangeDayCount.

Created with MrDocs