Provide read-only, sequential access in increasing (numerical) order to the holiday codes in a PackedCalendar object.
Declared in <bdlt_packedcalendar.h>
class PackedCalendar_HolidayCodeConstIterator;
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
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 refer to the next holiday code for the associated date in the associated calendar, and return a reference providing modifiable access to this object. The behavior is undefined unless, on entry, this iterator references a valid holiday code. |
operator-- | Regress this iterator to refer to the previous holiday code for the associated date in the associated calendar, and return a reference providing modifiable access to this object. The behavior is undefined unless, on entry, this iterator references a valid holiday code that is not the first holiday code for the associated date in the calendar. |
| Name | Description |
|---|---|
BloombergLP::bdlt::operator- | Return the number of elements between specified lhs and rhs. The behavior is undefined unless lhs and rhs refer to codes associated with the same holiday in the same calendar. |
BloombergLP::bdlt::operator!= | Return true if the specified lhs and rhs iterators do not refer to the same element, and false otherwise. The behavior is undefined unless lhs and rhs both reference the same holiday in the same calendar. |
BloombergLP::bdlt::operator== | Return true if the specified lhs and rhs iterators refers to the same element, and false otherwise. The behavior is undefined unless lhs and rhs both reference the same holiday in the same calendar. |
BloombergLP::bdlt::PackedCalendar | This class implements a space-efficient, value-semantic repository of weekend and holiday information over a valid range of dates. This valid range, [firstDate() .. lastDate()], spans the first and last dates of a calendar's accessible contents. A calendar can be "populated" with weekend and holiday information via a suite of "add" methods. Any subset of days of the week may be specified as weekend (i.e., recurring non-business) days starting from a specified date by adding a weekend-days transition; holidays within the valid range are specified individually. When adding a holiday, an arbitrary integer "holiday code" may be associated with that date. Additional holiday codes for that date may subsequently be added. Both the holidays and the set of unique holiday codes associated with each holiday date are maintained (internally) in order of increasing value. Note that the behavior of requesting any calendar information for a supplied date whose value is outside the current valid range for that calendar (unless otherwise noted, e.g., isWeekendDay) is undefined. |
| Name | Description |
|---|---|
operator++ | Advance the specified iterator to refer to the next holiday code for the associated date in the associated calendar, and return the previous value of iterator. The behavior is undefined unless, on entry, iterator references a valid holiday code. |
operator-- | Regress the specified iterator to refer to the previous holiday code for the associated date in the associated calendar, and return the previous value of iterator. The behavior is undefined unless, on entry, iterator references a valid holiday code that is not the first holiday code for the associated date in the calendar. |