Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Friends

bdlt::Timetable_ConstIterator Class Reference

#include <bdlt_timetable.h>

List of all members.

Public Types

typedef TimetableTransition value_type
typedef TimetableTransition_Refpointer
typedef TimetableTransition reference

Public Member Functions

 Timetable_ConstIterator ()
 Timetable_ConstIterator (const Timetable_ConstIterator &original)
 ~Timetable_ConstIterator ()
Timetable_ConstIteratoroperator= (const Timetable_ConstIterator &rhs)
Timetable_ConstIteratoroperator++ ()
Timetable_ConstIteratoroperator-- ()
TimetableTransition operator* () const
const TimetableTransition_Refoperator-> () const

Friends

class Timetable
bool operator== (const Timetable_ConstIterator &, const Timetable_ConstIterator &)
bool operator!= (const Timetable_ConstIterator &, const Timetable_ConstIterator &)

Detailed Description

Provide read-only, sequential access in increasing (chronological) order to the transitions in a Timetable object.

See Component bdlt_timetable


Member Typedef Documentation


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following file: