BDE 4.14.0 Production release
|
#include <bdlt_timetable.h>
Public Types | |
enum | { k_UNSET_TRANSITION_CODE } |
Public Member Functions | |
Timetable_CompactableTransition () | |
Timetable_CompactableTransition (const Time &time, int code) | |
Timetable_CompactableTransition (const Timetable_CompactableTransition &original) | |
~Timetable_CompactableTransition ()=default | |
Timetable_CompactableTransition & | operator= (const Timetable_CompactableTransition &rhs) |
const Time & | time () const |
Return the time of this compactable transition. | |
int | code () const |
Return the code of this compactable transition. | |
bsl::ostream & | print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const |
Friends | |
class | Timetable |
class | Timetable_Day |
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 bdlt_timetable
|
inline |
Create a Timetable_CompactableTransition
having time value Time(0)
and code k_UNSET_TRANSITION_CODE
.
|
inline |
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
.
|
inline |
Create a Timetable_CompactableTransition
having the same value as the specified original
object.
|
default |
|
inline |
|
inline |
Assign to this object the value of the specified rhs
compactable transition, and return a reference providing modifiable access to this object.
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.
|
inline |
|
friend |
|
friend |