Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Friends

bdlt::DayOfWeekSet_Iter Class Reference

#include <bdlt_dayofweekset.h>

List of all members.

Public Types

typedef
bsl::bidirectional_iterator_tag 
iterator_category
typedef DayOfWeek::Enum value_type
typedef bsl::ptrdiff_t difference_type
typedef const DayOfWeek::Enumpointer
typedef const DayOfWeek::Enumreference

Public Member Functions

 DayOfWeekSet_Iter ()
 DayOfWeekSet_Iter (int data, int index)
 DayOfWeekSet_Iter (const DayOfWeekSet_Iter &original)
 ~DayOfWeekSet_Iter ()
DayOfWeekSet_Iteroperator= (const DayOfWeekSet_Iter &rhs)
DayOfWeekSet_Iteroperator++ ()
DayOfWeekSet_Iter operator++ (int)
DayOfWeekSet_Iteroperator-- ()
DayOfWeekSet_Iter operator-- (int)
const DayOfWeek::Enumoperator* () const

Public Attributes

unsigned char d_data
signed char d_index

Static Public Attributes

static const DayOfWeek::Enum s_dayOfWeekArray [9]

Friends

bool operator== (const DayOfWeekSet_Iter &, const DayOfWeekSet_Iter &)

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

typedef bsl::bidirectional_iterator_tag bdlt::DayOfWeekSet_Iter::iterator_category

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.

bdlt::DayOfWeekSet_Iter::DayOfWeekSet_Iter ( const DayOfWeekSet_Iter original  ) 

Create an iterator having the value of the specified original iterator.

bdlt::DayOfWeekSet_Iter::~DayOfWeekSet_Iter (  ) 

Destroy this iterator.


Member Function Documentation

DayOfWeekSet_Iter& bdlt::DayOfWeekSet_Iter::operator= ( const DayOfWeekSet_Iter rhs  ) 

Assign to this iterator the value of the specified rhs iterator, and return a reference providing modifiable access to this iterator.

DayOfWeekSet_Iter& bdlt::DayOfWeekSet_Iter::operator++ (  ) 

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().

DayOfWeekSet_Iter bdlt::DayOfWeekSet_Iter::operator++ ( int   ) 

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().

DayOfWeekSet_Iter& bdlt::DayOfWeekSet_Iter::operator-- (  ) 

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().

DayOfWeekSet_Iter bdlt::DayOfWeekSet_Iter::operator-- ( int   ) 

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().

const DayOfWeek::Enum& bdlt::DayOfWeekSet_Iter::operator* (  )  const

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

bool operator== ( const DayOfWeekSet_Iter ,
const DayOfWeekSet_Iter  
) [friend]

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

= { ???, SUN, ...

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: