ICU 50.1.2
50.1.2
|
Measurement unit for time units. More...
#include <tmunit.h>
Public Types | |
enum | UTimeUnitFields { UTIMEUNIT_YEAR, UTIMEUNIT_MONTH, UTIMEUNIT_DAY, UTIMEUNIT_WEEK, UTIMEUNIT_HOUR, UTIMEUNIT_MINUTE, UTIMEUNIT_SECOND, UTIMEUNIT_FIELD_COUNT } |
Constants for all the time units we supported. More... | |
Public Member Functions | |
virtual UObject * | clone () const |
Override clone. More... | |
TimeUnit (const TimeUnit &other) | |
Copy operator. More... | |
TimeUnit & | operator= (const TimeUnit &other) |
Assignment operator. More... | |
virtual UBool | operator== (const UObject &other) const |
Equality operator. More... | |
UBool | operator!= (const UObject &other) const |
Non-Equality operator. More... | |
virtual UClassID | getDynamicClassID () const |
Returns a unique class ID for this object POLYMORPHICALLY. More... | |
UTimeUnitFields | getTimeUnitField () const |
Get time unit field. More... | |
virtual | ~TimeUnit () |
Destructor. More... | |
![]() | |
virtual | ~MeasureUnit () |
Destructor. More... | |
![]() | |
virtual | ~UObject () |
Destructor. More... | |
Static Public Member Functions | |
static TimeUnit * | createInstance (UTimeUnitFields timeUnitField, UErrorCode &status) |
Create Instance. More... | |
static UClassID | getStaticClassID () |
Returns the class ID for this class. More... | |
Additional Inherited Members | |
![]() | |
MeasureUnit () | |
Default constructor. More... | |
|
virtual |
Destructor.
|
virtual |
|
static |
|
virtual |
Returns a unique class ID for this object POLYMORPHICALLY.
This method implements a simple form of RTTI used by ICU.
Implements icu::UObject.
|
static |
Returns the class ID for this class.
This is used to compare to the return value of getDynamicClassID().
UTimeUnitFields icu::TimeUnit::getTimeUnitField | ( | ) | const |
Non-Equality operator.
Definition at line 138 of file tmunit.h.
References icu::operator==().
Equality operator.
Implements icu::MeasureUnit.