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

#include <bdlt_packedcalendar.h>

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

Public Member Functions

 PackedCalendar_DateRef (const Date &date)
 Create a date reference object using the specified date.
 
 PackedCalendar_DateRef (const PackedCalendar_DateRef &original)
 
 ~PackedCalendar_DateRef ()
 Destroy this object.
 
PackedCalendar_DateProxy operator& () const
 Return a proxy object to this object's referenced date.
 
- 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 ()
 Destroy this object.
 
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
 Return the day of the month in the range [1 .. 31] of this date.
 
DayOfWeek::Enum dayOfWeek () const
 
int dayOfYear () const
 Return the day of the year in the range [1 .. 366] of this date.
 
void getYearDay (int *year, int *dayOfYear) const
 
void getYearMonthDay (int *year, int *month, int *day) const
 
int month () const
 Return the month of the year in the range [1 .. 12] of this date.
 
MonthOfYear::Enum monthOfYear () const
 
int year () const
 Return the year in the range [1 .. 9999] of this date.
 
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 ()
 

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

Constructor & Destructor Documentation

◆ PackedCalendar_DateRef() [1/2]

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

◆ 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

Member Function Documentation

◆ operator&()

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

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