BDE 4.14.0 Production release
|
#include <bdlt_calendarreverseiteratoradapter.h>
Public Types | |
typedef ITERATOR::value_type | value_type |
typedef ITERATOR::difference_type | difference_type |
typedef ITERATOR::pointer | pointer |
typedef ITERATOR::reference | reference |
Public Member Functions | |
CalendarReverseIteratorAdapter () | |
CalendarReverseIteratorAdapter (const ITERATOR &value) | |
CalendarReverseIteratorAdapter & | operator= (const CalendarReverseIteratorAdapter &rhs) |
CalendarReverseIteratorAdapter & | operator= (const ITERATOR &rhs) |
CalendarReverseIteratorAdapter & | operator++ () |
CalendarReverseIteratorAdapter & | operator-- () |
reference | operator* () const |
pointer | operator-> () const |
ITERATOR | forwardIterator () const |
This reverse iterator adapter provides a subset of the bsl::reverse_iterator
interface that can be used with the calendar iterators defined in bdlt
. Specifically, the types value_type
, difference_type , pointer
, and reference
are defined but iterator_category is not defined (since this is not a fully-compliant iterator). Furthermore, the methods appropriate for random-access iterators are not included (e.g., operator+=
).
typedef ITERATOR::difference_type bdlt::CalendarReverseIteratorAdapter< ITERATOR >::difference_type |
typedef ITERATOR::pointer bdlt::CalendarReverseIteratorAdapter< ITERATOR >::pointer |
typedef ITERATOR::reference bdlt::CalendarReverseIteratorAdapter< ITERATOR >::reference |
typedef ITERATOR::value_type bdlt::CalendarReverseIteratorAdapter< ITERATOR >::value_type |
|
inline |
Create a reverse iterator having the default value. The default-constructed reverse iterator does not have a singular value unless an object of the type specified by the template parameter ITERATOR
has a singular value after default construction.
|
inlineexplicit |
Create a reverse iterator referring to the element that precedes, in the forward sequence (or that follows, in the backward sequence) the element referred to by the specified value
.
|
inline |
Return the forward iterator referring to the element in the forward sequence after the element referred to by this reverse iterator.
|
inline |
Return a reference to the element referred to by this reverse iterator. The behavior is undefined unless this iterator is within the bounds of the underlying sequence.
|
inline |
Modify this reverse iterator to refer to the next element in the reverse iteration sequence, and return a reference providing modifiable access to this reverse iterator. The behavior is undefined unless, on entry, this reverse iterator does not have the past-the-end value for a reverse iterator over the underlying sequence.
|
inline |
Modify this reverse iterator to refer to the previous element in the reverse iteration sequence, and return a reference providing modifiable access to this reverse iterator. The behavior is undefined unless, on entry, this reverse iterator does not have the same value as a reverse iterator at the start of the underlying sequence.
|
inline |
Return a pointer to the element referred to by this reverse iterator. The behavior is undefined unless this iterator is within the bounds of the underlying sequence.
|
inline |
Assign the value of the specified rhs
to this object, and return a reference providing modifiable access to this object.
|
inline |
Set the value of this object to refer to the element that precedes, in the forward sequence (or that follows, in the backward sequence) the element referred to by the specified rhs
, and return a reference providing modifiable access to this object.