BloombergLP::bdlt::TimetableTransition

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.

Synopsis

Declared in <bdlt_timetable.h>

class TimetableTransition;

Enums

Name
Unnamed enum

Member Functions

NameDescription
TimetableTransition [constructor]Create a TimetableTransition having the same value as the specified original object.
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 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

NameDescription
BloombergLP::bdlt::Timetable_ConstIteratorProvide read-only, sequential access in increasing (chronological) order to the transitions in a Timetable object.
BloombergLP::bdlt::TimetableTransition_RefThis private class is used by the arrow operator of the timetable iterator class. The objects instantiated from this class serve as references to TimetableTransition objects.

Non-Member Functions

NameDescription
operator!=Return true if the specified lhs and rhs timetable transitions do not have the same value, and false otherwise. Two timetable transitions do not have the same value if they do not have the same datetime or the same code.
operator<Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Timetable transition lhs has a value less than timetable transition rhs if lhs.datetime() < rhs.datetime(), or lhs.datetime() == rhs.datetime() and lhs.code() < rhs.code().
operator<Return true if the specified lhs has a value less than the specified rhs, and false otherwise. Timetable transition lhs has a value less than datetime rhs if lhs.datetime() < rhs. The behavior is undefined unless 24 > rhs.hour().
operator==Return true if the specified lhs and rhs timetable transitions have the same value, and false otherwise. Two timetable transitions have the same value if they have the same datetime and code.

Derived Classes

NameDescription
TimetableTransition_Ref This private class is used by the arrow operator of the timetable iterator class. The objects instantiated from this class serve as references to TimetableTransition objects.