[#BloombergLP-bbldc] = xref:BloombergLP.adoc[BloombergLP]::bbldc :relfileprefix: ../ :mrdocs: Package namespace for day‐count convention components. == Types [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bbldc/BasicActual360.adoc[`BasicActual360`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the Actual/360 day‐count convention. | xref:BloombergLP/bbldc/BasicActual36525.adoc[`BasicActual36525`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the Actual/365.25 day‐count convention. | xref:BloombergLP/bbldc/BasicActual365Fixed.adoc[`BasicActual365Fixed`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the Actual/365 fixed day‐count convention. | xref:BloombergLP/bbldc/BasicBasicDayCountAdapter.adoc[`BasicBasicDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION` to the `bbldc::BasicDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/BasicDateRangeDayCountAdapter.adoc[`BasicDateRangeDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION` to the `bbldc::DateRangeDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/BasicDayCount.adoc[`BasicDayCount`] | This `class` provides a protocol for determining values based on dates according to derived implementations of specific day‐count conventions. | xref:BloombergLP/bbldc/BasicDayCountUtil.adoc[`BasicDayCountUtil`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to enumerated day‐count conventions. | xref:BloombergLP/bbldc/BasicIsda11.adoc[`BasicIsda11`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the ISDA 1/1 day‐count convention. | xref:BloombergLP/bbldc/BasicIsdaActualActual.adoc[`BasicIsdaActualActual`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the ISDA Actual/Actual day‐count convention. | xref:BloombergLP/bbldc/BasicIsma30360.adoc[`BasicIsma30360`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the ISMA 30/360 day‐count convention. | xref:BloombergLP/bbldc/BasicNl365.adoc[`BasicNl365`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the NL/365 day‐count convention. | xref:BloombergLP/bbldc/BasicPsa30360Eom.adoc[`BasicPsa30360Eom`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the PSA 30/360 end‐of‐month day‐count convention. | xref:BloombergLP/bbldc/BasicSia30360Eom.adoc[`BasicSia30360Eom`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the SIA 30/360 end‐of‐month day‐count convention. | xref:BloombergLP/bbldc/BasicSia30360Neom.adoc[`BasicSia30360Neom`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the SIA‐30/360‐neom day‐count convention. | xref:BloombergLP/bbldc/CalendarBus252.adoc[`CalendarBus252`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the BUS‐252 day‐count convention. | xref:BloombergLP/bbldc/CalendarDateRangeDayCountAdapter.adoc[`CalendarDateRangeDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION`, that requires a calendar to compute the day count and the year fraction, to the `bbldc::DateRangeDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/CalendarDayCountUtil.adoc[`CalendarDayCountUtil`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to enumerated day‐count conventions. | xref:BloombergLP/bbldc/DateRangeDayCount.adoc[`DateRangeDayCount`] | This `class` provides a protocol for determining values based on dates according to derived implementations of specific day‐count conventions. 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. | xref:BloombergLP/bbldc/DayCountConvention.adoc[`DayCountConvention`] | This `struct` provides a namespace for enumerating the set of day‐count conventions supported within `bbldc`. See `Enum` in the `TYPES` sub‐section for details. | xref:BloombergLP/bbldc/PeriodDateRangeDayCountAdapter.adoc[`PeriodDateRangeDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION`, that requires a set of periods to compute the year fraction, to the `bbldc::DateRangeDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/PeriodDayCountUtil.adoc[`PeriodDayCountUtil`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to enumerated day‐count conventions. | xref:BloombergLP/bbldc/PeriodIcmaActualActual.adoc[`PeriodIcmaActualActual`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the ICMA Actual/Actual day‐count convention. | xref:BloombergLP/bbldc/TerminatedBasicDayCountAdapter.adoc[`TerminatedBasicDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION` to the `bbldc::BasicDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/TerminatedDateRangeDayCountAdapter.adoc[`TerminatedDateRangeDayCountAdapter`] | This `class` provides an "adapter" from the specified `CONVENTION` to the `bbldc::DateRangeDayCount` protocol that can be used for determining values based on dates according to the day‐count `CONVENTION`. | xref:BloombergLP/bbldc/TerminatedDayCountUtil.adoc[`TerminatedDayCountUtil`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to enumerated day‐count conventions. | xref:BloombergLP/bbldc/TerminatedIsda30360Eom.adoc[`TerminatedIsda30360Eom`] | This `struct` provides a namespace for a suite of pure functions that compute values based on dates according to the ISDA 30/360 end‐of‐month day‐count convention. |=== == Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bbldc/bdexStreamIn.adoc[`bdexStreamIn`] | Load into the specified `variable` the `DayCountConvention::Enum` value read from the specified input `stream` using the specified `version` format, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported by `DayCountConvention`, `variable` is unaltered and `stream` is invalidated, but otherwise unmodified. If `version` is supported by `DayCountConvention` but `stream` becomes invalid during this operation, `variable` has an undefined, but valid, state. The behavior is undefined unless `STREAM` is BDEX‐compliant. Note that no version is read from `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. | xref:BloombergLP/bbldc/bdexStreamOut.adoc[`bdexStreamOut`] | Write the specified `value`, using the specified `version` format, to the specified output `stream`, and return a reference to `stream`. If `stream` is initially invalid, this operation has no effect. If `version` is not supported by `DayCountConvention`, `stream` is invalidated, but otherwise unmodified. The behavior is undefined unless `STREAM` is BDEX‐compliant. Note that `version` is not written to `stream`. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. | xref:BloombergLP/bbldc/maxSupportedBdexVersion.adoc[`maxSupportedBdexVersion`] | Return the maximum valid BDEX format version, as indicated by the specified `versionSelector`, to be passed to the `bdexStreamOut` method while streaming an object of the type `DayCountConvention::Enum`. Note that it is highly recommended that `versionSelector` be formatted as "YYYYMMDD", a date representation. Also note that `versionSelector` should be a _compile_‐time‐chosen value that selects a format version supported by both externalizer and unexternalizer. See the `bslx` package‐level documentation for more information on BDEX streaming of value‐semantic types and containers. | xref:BloombergLP/bbldc/operator_lshift.adoc[`operator<<`] | Write the string representation of the specified enumeration `value` to the specified output `stream` in a single‐line format, and return a reference to `stream`. See `toAscii` for what constitutes the string representation of a `bbldc::DayCountConvention::Enum` value. Note that this method has the same behavior as ` bbldc::DayCountConvention::print(stream, value, 0, ‐1); ` |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#