BloombergLP::bdlt::DayOfWeekSet_Iter

Bidirectional iterator over the members of a DayOfWeekSet.

Synopsis

Declared in <bdlt_dayofweekset.h>

class DayOfWeekSet_Iter;

Description

Any modification of a DayOfWeekSet will invalidate any iterators referring to that DayOfWeekSet.

Type Aliases

NameDescription
difference_type Iterator difference type.
iterator_category Iterator category for this day-of-week iterator.
pointer Iterator pointer type.
reference Iterator reference type.
value_type Iterator value type.

Member Functions

NameDescription
DayOfWeekSet_Iter [constructor]Constructors
~DayOfWeekSet_Iter [destructor]Destroy this iterator.
operator= Assign to this iterator the value of the specified rhs iterator, and return a reference providing modifiable access to this iterator.
operator* Return a reference to the day of week this iterator refers to.
operator++ Increment operators
operator-- Decrement operators

Data Members

NameDescription
d_data Copy of the days-of-week bitmask from the original container.
d_index Current position in the iteration; value in [0 .. 8].

Static Data Members

NameDescription
s_dayOfWeekArray Lookup table mapping iterator indices to day-of-week values.

Friends

NameDescription
BloombergLP::bdlt::operator==Return true if the specified lhs and rhs iterators have the same value.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs iterators do not have the same value.