#include <bdlt_timetable.h>
List of all members.
Detailed Description
This simply-constrained attribute class represents a state transition, implemented as a time for when the transition occurs, and a code to indicate the new state.
See Component bdlt_timetable
Member Enumeration Documentation
Constructor & Destructor Documentation
bdlt::Timetable_CompactableTransition::Timetable_CompactableTransition |
( |
|
) |
|
bdlt::Timetable_CompactableTransition::Timetable_CompactableTransition |
( |
const Time & |
time, |
|
|
int |
code | |
|
) |
| | |
Create a Timetable_CompactableTransition
having the specified time
and code
. The behavior is undefined unless 24 > time.hour()
and 0 <= code || k_UNSET_TRANSITION_CODE == code
.
bdlt::Timetable_CompactableTransition::~Timetable_CompactableTransition |
( |
|
) |
|
Member Function Documentation
Assign to this object the value of the specified rhs
compactable transition, and return a reference providing modifiable access to this object.
const Time& bdlt::Timetable_CompactableTransition::time |
( |
|
) |
const |
Return the time of this compactable transition.
int bdlt::Timetable_CompactableTransition::code |
( |
|
) |
const |
Return the code of this compactable transition.
bsl::ostream& bdlt::Timetable_CompactableTransition::print |
( |
bsl::ostream & |
stream, |
|
|
int |
level = 0 , |
|
|
int |
spacesPerLevel = 4 | |
|
) |
| | const |
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
The documentation for this class was generated from the following file: