BloombergLP::bdlt::TimetableTransition

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

NameDescription
Unnamed enum Constants for timetable transition codes.

Member Functions

NameDescription
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

NameDescription
BloombergLP::bdlt::Timetable_ConstIteratorProvide read-only, sequential access in increasing (chronological) order to the transitions in a Timetable object.
BloombergLP::bdlt::TimetableTransition_RefProxy reference used by timetable iterator arrow operators.

Non-Member Functions

NameDescription
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

NameDescription
TimetableTransition_Ref Proxy reference used by timetable iterator arrow operators.