Datetime‐indexed state transition with an associated code.

Synopsis

Declared in <bdlt_timetable.h>

class TimetableTransition;

Description

This simply‐constrained attribute class represents a state transition, implemented as a datetime for when the transition occurs, and a code to indicate the new state.

Enums

Name

Description

Unnamed enum

Constants for timetable transition codes.

Member Functions

Name

Description

TimetableTransition [constructor]

Create a transition having the same value as original.

operator=

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

code

Return the code of this transition.

datetime

Return the datetime of this transition.

print

Format this transition to the specified output stream.

Friends

Name

Description

BloombergLP::bdlt::Timetable_ConstIterator

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

BloombergLP::bdlt::TimetableTransition_Ref

Proxy reference used by timetable iterator arrow operators.

Non-Member Functions

Name

Description

operator!=

Return true if lhs and rhs timetable transitions do not have the same value.

operator<

Return true if timetable transition lhs is less than rhs.

operator<

Return true if timetable transition lhs is less than datetime rhs.

operator==

Return true if lhs and rhs timetable transitions have the same value.

Derived Classes

Name

Description

TimetableTransition_Ref

Proxy reference used by timetable iterator arrow operators.

Created with MrDocs