BloombergLP::bdlt::Timetable_Day

Value-semantic repository of time-indexed state transitions for one day.

Synopsis

Declared in <bdlt_timetable.h>

class Timetable_Day;

Description

This class implements a value-semantic repository of time-indexed state transitions over one date (this class implements one day of a timetable). A Timetable_Day can be "populated" with state transitions via the addTransition method, and queried for the transition code in effect at a specified time via the transitionCodeInEffect method. Note that, as an optimization for the transitionCodeInEffect method, the transition code in effect before the first possible transition is stored in d_initialTransitionCode.

Enums

NameDescription
Unnamed enum Constants for compactable transition codes.

Member Functions

NameDescription
Timetable_Day [constructor]Constructors
operator= Assign the value of rhs to this daily timetable.
addTransition Add or replace a transition at time with code.
finalTransitionCode Return the transition code in effect at the end of this day.
initialTransitionCode Return the transition code in effect prior to the start of this daily timetable.
removeAllTransitions Remove all transitions from this daily timetable.
removeTransition Remove the transition at time, if present.
setInitialTransitionCode Set the initial transition code of this daily timetable to code.
size Return the number of transitions in this daily timetable.
transitionCodeInEffect Return the transition code in effect at the specified time.

Friends

NameDescription
BloombergLP::bdlt::hashAppendPass object to hashAlg for modular hashing.
BloombergLP::bdlt::operator<Return true if lhs daily timetable is less than rhs.
BloombergLP::bdlt::operator!=Return true if lhs and rhs daily timetables do not have the same value.
BloombergLP::bdlt::operator==Return true if lhs and rhs daily timetables have the same value.
BloombergLP::bdlt::Timetable_ConstIteratorProvide read-only, sequential access in increasing (chronological) order to the transitions in a Timetable object.