[#BloombergLP-bdlt-TimetableTransition]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlt.adoc[bdlt]::TimetableTransition
:relfileprefix: ../../
:mrdocs:

This simply&hyphen;constrained attribute class represents a state transition, implemented as a datetime for when the transition occurs, and a code to indicate the new state&period;

== Synopsis

Declared in `&lt;bdlt&lowbar;timetable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class TimetableTransition;
----

== Enums

[cols="1"]
|===
| Name
| xref:BloombergLP/bdlt/TimetableTransition/_04enum.adoc[`Unnamed enum`] 
|===


== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/TimetableTransition/2constructor-0c.adoc[`TimetableTransition`]         [.small]#[constructor]#
| Create a `TimetableTransition` having the same value as the specified `original` object&period;
| xref:BloombergLP/bdlt/TimetableTransition/operator_assign.adoc[`operator&equals;`] 
| Assign to this object the value of the specified `rhs` timetable transition, and return a reference providing modifiable access to this object&period;
| xref:BloombergLP/bdlt/TimetableTransition/code.adoc[`code`] 
| Return the code of this transition&period;
| xref:BloombergLP/bdlt/TimetableTransition/datetime.adoc[`datetime`] 
| Return the datetime of this transition&period;
| xref:BloombergLP/bdlt/TimetableTransition/print.adoc[`print`] 
| 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`&period; If `level` is specified, optionally specify `spacesPerLevel`, the number of spaces per indentation level for this and all of its nested objects&period; If `level` is negative, suppress indentation of the first line&period; If `spacesPerLevel` is negative, format the entire output on one line, suppressing all but the initial indentation (as governed by `level`)&period; If `stream` is not valid on entry, this operation has no effect&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:BloombergLP/bdlt/Timetable_ConstIterator.adoc[BloombergLP::bdlt::Timetable&lowbar;ConstIterator]`
| Provide read&hyphen;only, sequential access in increasing (chronological) order to the transitions in a `Timetable` object&period;
| `xref:BloombergLP/bdlt/TimetableTransition_Ref.adoc[BloombergLP::bdlt::TimetableTransition&lowbar;Ref]`
| This private class is used by the arrow operator of the timetable iterator class&period; The objects instantiated from this class serve as references to `TimetableTransition` objects&period;
|===

== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/operator_not_eq-040.adoc[`operator!&equals;`]
| Return `true` if the specified `lhs` and `rhs` timetable transitions do not have the same value, and `false` otherwise&period; Two timetable transitions do not have the same value if they do not have the same datetime or the same code&period;
| xref:BloombergLP/bdlt/operator_lt-03c.adoc[`operator&lt;`]
| Return `true` if the specified `lhs` has a value less than the specified `rhs`, and `false` otherwise&period; Timetable transition `lhs` has a value less than timetable transition `rhs` if `lhs&period;datetime() &lt; rhs&period;datetime()`, or `lhs&period;datetime() &equals;&equals; rhs&period;datetime()` and `lhs&period;code() &lt; rhs&period;code()`&period;
| xref:BloombergLP/bdlt/operator_lt-0e.adoc[`operator&lt;`]
| Return `true` if the specified `lhs` has a value less than the specified `rhs`, and `false` otherwise&period; Timetable transition `lhs` has a value less than datetime `rhs` if `lhs&period;datetime() &lt; rhs`&period; The behavior is undefined unless `24 &gt; rhs&period;hour()`&period;
| xref:BloombergLP/bdlt/operator_eq-013.adoc[`operator&equals;&equals;`]
| Return `true` if the specified `lhs` and `rhs` timetable transitions have the same value, and `false` otherwise&period; Two timetable transitions have the same value if they have the same datetime and code&period;
|===

== Derived Classes

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlt/TimetableTransition_Ref.adoc[`TimetableTransition&lowbar;Ref`] 
| This private class is used by the arrow operator of the timetable iterator class&period; The objects instantiated from this class serve as references to `TimetableTransition` objects&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
