BDE 4.14.0 Production release
|
#include <bdlt_packedcalendar.h>
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. | |
![]() | |
Date () | |
Date (int year, int dayOfYear) | |
Date (int year, int month, int day) | |
Date (const Date &original) | |
~Date () | |
Destroy this object. | |
Date & | operator= (const Date &rhs) |
Date & | operator+= (int numDays) |
Date & | operator-= (int numDays) |
Date & | operator++ () |
Date & | operator-- () |
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 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 () |
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.
|
inlineexplicit |
|
inline |
Create a date reference object having the value of the specified original
object.
|
inline |
|
inline |