BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bdlt::TimetableTransition Class Reference

#include <bdlt_timetable.h>

Inheritance diagram for bdlt::TimetableTransition:
bdlt::TimetableTransition_Ref

Public Types

enum  { k_UNSET_TRANSITION_CODE = -1 }
 

Public Member Functions

 TimetableTransition (const TimetableTransition &original)
 
 ~TimetableTransition ()=default
 Destroy this object.
 
TimetableTransitionoperator= (const TimetableTransition &rhs)
 
const Datetimedatetime () const
 Return the datetime of this transition.
 
int code () const
 Return the code of this transition.
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 

Friends

class TimetableTransition_Ref
 
class Timetable_ConstIterator
 

Detailed 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.

See bdlt_timetable

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_UNSET_TRANSITION_CODE 

Constructor & Destructor Documentation

◆ TimetableTransition()

bdlt::TimetableTransition::TimetableTransition ( const TimetableTransition original)
inline

Create a TimetableTransition having the same value as the specified original object.

◆ ~TimetableTransition()

bdlt::TimetableTransition::~TimetableTransition ( )
default

Member Function Documentation

◆ code()

int bdlt::TimetableTransition::code ( ) const
inline

◆ datetime()

const Datetime & bdlt::TimetableTransition::datetime ( ) const
inline

◆ operator=()

TimetableTransition & bdlt::TimetableTransition::operator= ( const TimetableTransition rhs)
inline

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

◆ print()

bsl::ostream & bdlt::TimetableTransition::print ( bsl::ostream &  stream,
int  level = 0,
int  spacesPerLevel = 4 
) const

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 And Related Symbol Documentation

◆ Timetable_ConstIterator

friend class Timetable_ConstIterator
friend

◆ TimetableTransition_Ref

friend class TimetableTransition_Ref
friend

The documentation for this class was generated from the following file: