GIF89a;
* . Base* polymorphic_pointer = createPolymorphicObject(); * . if (polymorphic_pointer->getDynamicClassID() == * . erived::getStaticClassID()) ... * * @return The class ID for all objects of this class. * @stable ICU 4.2 */ static UClassID U_EXPORT2 getStaticClassID(void); /** * 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. * * @return The class ID for this object. All objects of a * given class have the same class ID. Objects of * other classes have different class IDs. * @stable ICU 4.2 */ virtual UClassID getDynamicClassID(void) const; /** * Get the time unit. * @return time unit object. * @stable ICU 4.2 */ const TimeUnit& getTimeUnit() const; /** * Get the time unit field value. * @return time unit field value. * @stable ICU 4.2 */ TimeUnit::UTimeUnitFields getTimeUnitField() const; }; inline UBool TimeUnitAmount::operator!=(const UObject& other) const { return !operator==(other); } U_NAMESPACE_END #endif /* #if !UCONFIG_NO_FORMATTING */ #endif // __TMUTAMT_H__ //eof //