#include <bdlt_dayofweekset.h>
List of all members.
Detailed Description
Implementation of standard bidirectional iterator for DayOfWeekSet
. Any modification of a DayOfWeekSet
will invalidate any iterators referring to that DayOfWeekSet
.
See Component bdlt_dayofweekset
Member Typedef Documentation
Constructor & Destructor Documentation
bdlt::DayOfWeekSet_Iter::DayOfWeekSet_Iter |
( |
|
) |
|
Create a default (invalid) iterator.
bdlt::DayOfWeekSet_Iter::DayOfWeekSet_Iter |
( |
int |
data, |
|
|
int |
index | |
|
) |
| | |
Create an iterator using the specified data
and index
. If index
is 1, this iterator references the first valid element of data
; if index
is 8, then this iterator references one past the last possible element in data
. The behavior is undefined unless 0 == (data & 1)
, index >= 0
, and index <= 8
.
Create an iterator having the value of the specified original
iterator.
bdlt::DayOfWeekSet_Iter::~DayOfWeekSet_Iter |
( |
|
) |
|
Member Function Documentation
Assign to this iterator the value of the specified rhs
iterator, and return a reference providing modifiable access to this iterator.
Advance this iterator to the next valid data element, and return a reference providing modifiable access to this iterator. If there is no next valid data element, this iterator will be set equal to end()
.
Advance this iterator to the next valid data element, and return by value the value of this iterator before it was incremented. If there is no next valid data element, this iterator will be set equal to end()
.
Regress this iterator to the previous valid data element, and return a reference providing modifiable access to this iterator. If there is no preceding data element, the value of reverse_iterator(*this)
will be rend()
.
Regress this iterator to the previous valid data element, and return by value the value of this iterator before it was decremented. If there is no preceding data element, the value of reverse_iterator(*this)
will be rend()
.
Return a reference providing non-modifiable access to the day of week value referenced by this iterator. The behavior is undefined unless the iterator refers to a valid day of the week, specifically, the behavior is undefined if *this == end()
.
Friends And Related Function Documentation
Return true
if the specified lhs
and rhs
iterators have the same value, and false
otherwise. Two iterators have the same value if they refer to data at the same index position. The behavior is undefined unless lhs
and rhs
both reference into the same set of data.
Member Data Documentation
copy of days of the week from the original
current position in the iteration; value
The documentation for this class was generated from the following file: