BloombergLP::bdlt::PackedCalendar_HolidayCodeConstIterator

Provide read-only, sequential access in increasing (numerical) order to the holiday codes in a PackedCalendar object.

Synopsis

Declared in <bdlt_packedcalendar.h>

class PackedCalendar_HolidayCodeConstIterator;

Type Aliases

NameDescription
difference_type Iterator difference type.
iterator_category Iterator category for this holiday-code iterator.
pointer Iterator pointer type.
reference The star operator returns an int by value.
value_type Iterator value type.

Member Functions

NameDescription
PackedCalendar_HolidayCodeConstIterator [constructor]Create an object having the value of the specified original iterator.
~PackedCalendar_HolidayCodeConstIterator [destructor]Destroy this object.
operator= Assign to this object the value of the specified rhs iterator, and return a reference providing modifiable access to this object.
operator* Return the holiday code referenced by this iterator.
operator++ Advance this iterator to the next holiday code for the associated date.
operator-- Regress this iterator to the previous holiday code for the associated date.

Friends

NameDescription
BloombergLP::bdlt::operator-Return the number of holiday codes between lhs and rhs.
BloombergLP::bdlt::operator!=Return true if lhs and rhs do not refer to the same holiday code.
BloombergLP::bdlt::operator==Return true if lhs and rhs refer to the same holiday code.
BloombergLP::bdlt::PackedCalendarSpace-efficient, value-semantic repository of weekend and holiday information.

Non-Member Functions

NameDescription
operator++Advance iterator to the next holiday code and return its previous value.
operator--Regress iterator to the previous holiday code and return its previous value.