ICU 64.2
64.2
|
This class represents a date interval. More...
#include <dtintrv.h>
Public Member Functions | |
DateInterval (UDate fromDate, UDate toDate) | |
Construct a DateInterval given a from date and a to date. More... | |
virtual | ~DateInterval () |
destructor More... | |
UDate | getFromDate () const |
Get the from date. More... | |
UDate | getToDate () const |
Get the to date. More... | |
virtual UClassID | getDynamicClassID (void) const |
Returns a unique class ID POLYMORPHICALLY. More... | |
DateInterval (const DateInterval &other) | |
Copy constructor. More... | |
DateInterval & | operator= (const DateInterval &) |
Default assignment operator. More... | |
virtual UBool | operator== (const DateInterval &other) const |
Equality operator. More... | |
UBool | operator!= (const DateInterval &other) const |
Non-equality operator. More... | |
virtual DateInterval * | clone () const |
clone this object. More... | |
Public Member Functions inherited from icu::UObject | |
virtual | ~UObject () |
Destructor. More... | |
Static Public Member Functions | |
static UClassID | getStaticClassID (void) |
Return the class ID for this class. More... | |
This class represents a date interval.
It is a pair of UDate representing from UDate 1 to UDate 2.
Construct a DateInterval given a from date and a to date.
fromDate | The from date in date interval. |
toDate | The to date in date interval. |
|
virtual |
destructor
icu::DateInterval::DateInterval | ( | const DateInterval & | other | ) |
Copy constructor.
|
virtual |
clone this object.
The caller owns the result and should delete it when done.
|
virtual |
Returns a unique class ID POLYMORPHICALLY.
Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.
Reimplemented from icu::UObject.
|
inline |
|
static |
Return the class ID for this class.
This is useful only for comparing to a return value from getDynamicClassID(). For example:
. Base* polymorphic_pointer = createPolymorphicObject(); . if (polymorphic_pointer->getDynamicClassID() == . derived::getStaticClassID()) ...
|
inline |
|
inline |
Non-equality operator.
Definition at line 153 of file dtintrv.h.
References U_NAMESPACE_END.
DateInterval& icu::DateInterval::operator= | ( | const DateInterval & | ) |
Default assignment operator.
|
virtual |