Quick Links:

bal | bbl | bdl | bsl

Public Types | Public Member Functions | Friends

bdlt::TimetableTransition_Ref Class Reference

#include <bdlt_timetable.h>

Inheritance diagram for bdlt::TimetableTransition_Ref:
bdlt::TimetableTransition

List of all members.

Public Types

enum  { k_UNSET_TRANSITION_CODE = -1 }

Public Member Functions

 TimetableTransition_Ref (const TimetableTransition &transition)
 TimetableTransition_Ref (const TimetableTransition_Ref &original)
 ~TimetableTransition_Ref ()
TimetableTransition_Refoperator= (const TimetableTransition &rhs)
const Datetimedatetime () const
int code () const
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const

Friends

class Timetable_ConstIterator

Detailed Description

This private class is used by the arrow operator of the timetable iterator class. The objects instantiated from this class serve as references to TimetableTransition objects.

See Component bdlt_timetable


Member Enumeration Documentation

anonymous enum [inherited]

value representing an unset

Enumerator:
k_UNSET_TRANSITION_CODE 

Constructor & Destructor Documentation

bdlt::TimetableTransition_Ref::TimetableTransition_Ref ( const TimetableTransition transition  )  [explicit]

Create a timetable transition reference object using the specified transition.

bdlt::TimetableTransition_Ref::TimetableTransition_Ref ( const TimetableTransition_Ref original  ) 

Create a timetable transition reference object having the value of the specified original object.

bdlt::TimetableTransition_Ref::~TimetableTransition_Ref (  ) 

Destroy this object.


Member Function Documentation

TimetableTransition_Ref& bdlt::TimetableTransition_Ref::operator= ( const TimetableTransition rhs  ) 

Assign to this object the value of the specified rhs timetable transition, and return a reference providing modifiable access to this TimetableTransition_Ref.

Reimplemented from bdlt::TimetableTransition.

const Datetime& bdlt::TimetableTransition::datetime (  )  const [inherited]

Return the datetime of this transition.

int bdlt::TimetableTransition::code (  )  const [inherited]

Return the code of this transition.

bsl::ostream& bdlt::TimetableTransition::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const [inherited]

Format this object to the specified output stream at the (absolute value of) the optionally specified indentation level and return a reference to the modifiable stream. If level is specified, optionally specify spacesPerLevel, the number of spaces per indentation level for this and all of its nested objects. If level is negative, suppress indentation of the first line. If spacesPerLevel is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by level). If stream is not valid on entry, this operation has no effect.


Friends And Related Function Documentation

friend class Timetable_ConstIterator [friend]

Reimplemented from bdlt::TimetableTransition.


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