Quick Links: |
#include <bdlt_timetable.h>
Public Types | |
typedef TimetableTransition | value_type |
typedef TimetableTransition_Ref * | pointer |
typedef TimetableTransition | reference |
Public Member Functions | |
Timetable_ConstIterator () | |
Timetable_ConstIterator (const Timetable_ConstIterator &original) | |
~Timetable_ConstIterator () | |
Timetable_ConstIterator & | operator= (const Timetable_ConstIterator &rhs) |
Timetable_ConstIterator & | operator++ () |
Timetable_ConstIterator & | operator-- () |
TimetableTransition | operator* () const |
const TimetableTransition_Ref * | operator-> () const |
Friends | |
class | Timetable |
bool | operator== (const Timetable_ConstIterator &, const Timetable_ConstIterator &) |
bool | operator!= (const Timetable_ConstIterator &, const Timetable_ConstIterator &) |
Provide read-only, sequential access in increasing (chronological) order to the transitions in a Timetable
object.
bdlt::Timetable_ConstIterator::Timetable_ConstIterator | ( | ) |
Create a default iterator. Note that the behavior of most methods is undefined when used on a default-constructed iterator.
bdlt::Timetable_ConstIterator::Timetable_ConstIterator | ( | const Timetable_ConstIterator & | original | ) |
Create an iterator having the value of the specified original
iterator.
bdlt::Timetable_ConstIterator::~Timetable_ConstIterator | ( | ) |
Destroy this object.
Timetable_ConstIterator& bdlt::Timetable_ConstIterator::operator= | ( | const Timetable_ConstIterator & | rhs | ) |
Assign to this iterator the value of the specified rhs
iterator, and return a reference providing modifiable access to this object.
Timetable_ConstIterator& bdlt::Timetable_ConstIterator::operator++ | ( | ) |
Advance this iterator to refer to the next transition in the associated timetable, and return a reference providing modifiable access to this object. The behavior is undefined unless, on entry, this iterator references a valid transition.
Timetable_ConstIterator& bdlt::Timetable_ConstIterator::operator-- | ( | ) |
Regress this iterator to refer to the previous transition in the associated timetable, and return a reference providing modifiable access to this object. The behavior is undefined unless, on entry, this iterator references a valid transition that is not the first transition of the associated timetable.
TimetableTransition bdlt::Timetable_ConstIterator::operator* | ( | ) | const |
Return, by value, a TimetableTransition
object representing the transition referenced by this iterator. The behavior is undefined unless this iterator references a valid transition in the associated timetable.
const TimetableTransition_Ref* bdlt::Timetable_ConstIterator::operator-> | ( | ) | const |
Return a proxy to the transition referenced by this iterator. The behavior is undefined unless this iterator references a valid transition in the associated timetable.
friend class Timetable [friend] |
bool operator== | ( | const Timetable_ConstIterator & | , | |
const Timetable_ConstIterator & | ||||
) | [friend] |
Return true
if the specified lhs
and rhs
iterators have the same value, and false
otherwise. Two Timetable_ConstIterator
iterators have the same value if they refer to the same timetable and the same transition.
bool operator!= | ( | const Timetable_ConstIterator & | , | |
const Timetable_ConstIterator & | ||||
) | [friend] |
Return true
if the specified lhs
and rhs
iterators do not have the same value, and false
otherwise. Two Timetable_ConstIterator
iterators do not have the same value if they do not refer to the same timetable, or do not refer to the same transition.