Quick Links:

bal | bbl | bdl | bsl

Classes | Functions

bbldc Namespace Reference
[Component bbldc_basicactual360Component bbldc_basicactual36525Component bbldc_basicactual365fixedComponent bbldc_basicbasicdaycountadapterComponent bbldc_basicdaterangedaycountadapterComponent bbldc_basicdaycountComponent bbldc_basicdaycountutilComponent bbldc_basicisdaactualactualComponent bbldc_basicisma30360Component bbldc_basicnl365Component bbldc_basicpsa30360eomComponent bbldc_basicsia30360eomComponent bbldc_basicsia30360neomComponent bbldc_calendarbus252Component bbldc_calendardaterangedaycountadapterComponent bbldc_calendardaycountutilComponent bbldc_daterangedaycountComponent bbldc_daycountconventionComponent bbldc_perioddaterangedaycountadapterComponent bbldc_perioddaycountutilComponent bbldc_periodicmaactualactualComponent bbldc_terminatedbasicdaycountadapterComponent bbldc_terminateddaterangedaycountadapterComponent bbldc_terminateddaycountutilComponent bbldc_terminatedisda30360eom]

Classes

struct  BasicActual360
struct  BasicActual36525
struct  BasicActual365Fixed
class  BasicBasicDayCountAdapter
class  BasicDateRangeDayCountAdapter
class  BasicDayCount
struct  BasicDayCountUtil
struct  BasicIsdaActualActual
struct  BasicIsma30360
struct  BasicNl365
struct  BasicPsa30360Eom
struct  BasicSia30360Eom
struct  BasicSia30360Neom
struct  CalendarBus252
class  CalendarDateRangeDayCountAdapter
struct  CalendarDayCountUtil
class  DateRangeDayCount
struct  DayCountConvention
class  PeriodDateRangeDayCountAdapter
struct  PeriodDayCountUtil
struct  PeriodIcmaActualActual
class  TerminatedBasicDayCountAdapter
class  TerminatedDateRangeDayCountAdapter
struct  TerminatedDayCountUtil
struct  TerminatedIsda30360Eom

Functions

bsl::ostream & operator<< (bsl::ostream &stream, DayCountConvention::Enum value)
template<class STREAM >
STREAM & bdexStreamIn (STREAM &stream, DayCountConvention::Enum &variable, int version)
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, const DayCountConvention::Enum &value, int version)
int maxSupportedBdexVersion (const DayCountConvention::Enum *, int versionSelector)

Function Documentation

bsl::ostream& bbldc::operator<< ( bsl::ostream &  stream,
DayCountConvention::Enum  value 
)

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);
template<class STREAM >
STREAM& bbldc::bdexStreamIn ( STREAM &  stream,
DayCountConvention::Enum &  variable,
int  version 
)

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.

Referenced by bdlb::Variant_BdexStreamInVisitor< STREAM >::operator()().

template<class STREAM >
STREAM& bbldc::bdexStreamOut ( STREAM &  stream,
const DayCountConvention::Enum &  value,
int  version 
)

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.

Referenced by bdlb::Variant_BdexStreamOutVisitor< STREAM >::operator()().

int bbldc::maxSupportedBdexVersion ( const DayCountConvention::Enum *  ,
int  versionSelector 
)

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.