BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bdlt::PackedCalendar_DateRef Class Reference

#include <bdlt_packedcalendar.h>

Inheritance diagram for bdlt::PackedCalendar_DateRef:
bdlt::Date

Detailed Description

This private class is used by the arrow operator of the holiday iterator and business day iterator classes. The objects instantiated from this class serve as references to Date objects.

See bdlt_packedcalendar

Public Member Functions

 PackedCalendar_DateRef (const Date &date)
 
 PackedCalendar_DateRef (const PackedCalendar_DateRef &original)
 
 ~PackedCalendar_DateRef ()
 
PackedCalendar_DateProxy operator& () const
 
- Public Member Functions inherited from bdlt::Date
 Date ()
 
 Date (int year, int dayOfYear)
 
 Date (int year, int month, int day)
 
 Date (const Date &original)
 
 ~Date ()
 
Dateoperator= (const Date &rhs)
 
Dateoperator+= (int numDays)
 
Dateoperator-= (int numDays)
 
Dateoperator++ ()
 
Dateoperator-- ()
 
int addDaysIfValid (int numDays)
 
void setYearDay (int year, int dayOfYear)
 
int setYearDayIfValid (int year, int dayOfYear)
 
void setYearMonthDay (int year, int month, int day)
 
int setYearMonthDayIfValid (int year, int month, int day)
 
template<class STREAM >
STREAM & bdexStreamIn (STREAM &stream, int version)
 
int day () const
 
DayOfWeek::Enum dayOfWeek () const
 
int dayOfYear () const
 
void getYearDay (int *year, int *dayOfYear) const
 
void getYearMonthDay (int *year, int *month, int *day) const
 
int month () const
 
MonthOfYear::Enum monthOfYear () const
 
int year () const
 
template<class STREAM >
STREAM & bdexStreamOut (STREAM &stream, int version) const
 
bsl::ostream & print (bsl::ostream &stream, int level=0, int spacesPerLevel=4) const
 
bsl::ostream & streamOut (bsl::ostream &stream) const
 
int validateAndSetYearDay (int year, int dayOfYear)
 
int validateAndSetYearMonthDay (int year, int month, int day)
 

Additional Inherited Members

- Static Public Member Functions inherited from bdlt::Date
static bool isValidYearDay (int year, int dayOfYear)
 
static bool isValidYearMonthDay (int year, int month, int day)
 
static int maxSupportedBdexVersion (int versionSelector)
 
static bool isValid (int year, int dayOfYear)
 
static bool isValid (int year, int month, int day)
 
static int maxSupportedBdexVersion ()
 
static int maxSupportedVersion ()
 

Constructor & Destructor Documentation

◆ PackedCalendar_DateRef() [1/2]

bdlt::PackedCalendar_DateRef::PackedCalendar_DateRef ( const Date date)
inlineexplicit

Create a date reference object using the specified date.

◆ PackedCalendar_DateRef() [2/2]

bdlt::PackedCalendar_DateRef::PackedCalendar_DateRef ( const PackedCalendar_DateRef original)
inline

Create a date reference object having the value of the specified original object.

◆ ~PackedCalendar_DateRef()

bdlt::PackedCalendar_DateRef::~PackedCalendar_DateRef ( )
inline

Destroy this object.

Member Function Documentation

◆ operator&()

PackedCalendar_DateProxy bdlt::PackedCalendar_DateRef::operator& ( ) const
inline

Return a proxy object to this object's referenced date.


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