Quick Links: |
#include <bdlt_packedcalendar.h>
Public Types | |
typedef Date | value_type |
typedef int | difference_type |
typedef PackedCalendar_DateProxy | pointer |
typedef PackedCalendar_DateRef | reference |
typedef bsl::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
PackedCalendar_BusinessDayConstIterator (const PackedCalendar_BusinessDayConstIterator &original) | |
~PackedCalendar_BusinessDayConstIterator () | |
PackedCalendar_BusinessDayConstIterator & | operator= (const PackedCalendar_BusinessDayConstIterator &rhs) |
PackedCalendar_BusinessDayConstIterator & | operator++ () |
PackedCalendar_BusinessDayConstIterator & | operator-- () |
PackedCalendar_DateRef | operator* () const |
PackedCalendar_DateProxy | operator-> () const |
Friends | |
class | PackedCalendar |
bool | operator== (const PackedCalendar_BusinessDayConstIterator &, const PackedCalendar_BusinessDayConstIterator &) |
bool | operator!= (const PackedCalendar_BusinessDayConstIterator &, const PackedCalendar_BusinessDayConstIterator &) |
Provide read-only, sequential access in increasing (chronological) order to the business days in a PackedCalendar
object.
See Component bdlt_packedcalendar
typedef bsl::bidirectional_iterator_tag bdlt::PackedCalendar_BusinessDayConstIterator::iterator_category |
bdlt::PackedCalendar_BusinessDayConstIterator::PackedCalendar_BusinessDayConstIterator | ( | const PackedCalendar_BusinessDayConstIterator & | original | ) |
Create an iterator having the value of the specified original
iterator.
bdlt::PackedCalendar_BusinessDayConstIterator::~PackedCalendar_BusinessDayConstIterator | ( | ) |
Destroy this object.
PackedCalendar_BusinessDayConstIterator& bdlt::PackedCalendar_BusinessDayConstIterator::operator= | ( | const PackedCalendar_BusinessDayConstIterator & | rhs | ) |
Assign to this iterator the value of the specified rhs
iterator, and return a reference providing modifiable access to this object.
PackedCalendar_BusinessDayConstIterator& bdlt::PackedCalendar_BusinessDayConstIterator::operator++ | ( | ) |
Advance this iterator to refer to the next business day 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 business day.
PackedCalendar_BusinessDayConstIterator& bdlt::PackedCalendar_BusinessDayConstIterator::operator-- | ( | ) |
Regress this iterator to refer to the previous business day 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 business day that is not the first business day for the associated calendar.
PackedCalendar_DateRef bdlt::PackedCalendar_BusinessDayConstIterator::operator* | ( | ) | const |
Return a PackedCalendar_DateRef
object that contains the date value of the business day referenced by this iterator.
PackedCalendar_DateProxy bdlt::PackedCalendar_BusinessDayConstIterator::operator-> | ( | ) | const |
Return a date proxy for the business day referenced by this iterator.
friend class PackedCalendar [friend] |
bool operator== | ( | const PackedCalendar_BusinessDayConstIterator & | , | |
const PackedCalendar_BusinessDayConstIterator & | ||||
) | [friend] |
Return true
if the specified lhs
and rhs
iterators refer to the same element in the same calendar, and false
otherwise. The behavior is undefined unless lhs
and rhs
both iterate over the same calendar.
bool operator!= | ( | const PackedCalendar_BusinessDayConstIterator & | , | |
const PackedCalendar_BusinessDayConstIterator & | ||||
) | [friend] |
Return true
if the specified lhs
and rhs
iterators do not refer to the same element in the same calendar, and false
otherwise. The behavior is undefined unless lhs
and rhs
both iterate over the same calendar.