Logo Search packages:      
Sourcecode: icu version File versions  Download package

virtual UClassID TimeZone::getDynamicClassID ( void   ) const [pure virtual]

Returns a unique class ID POLYMORPHICALLY. 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.

Concrete subclasses of TimeZone must use the UOBJECT_DEFINE_RTTI_IMPLEMENTATION macro from uobject.h in their implementation to provide correct RTTI information.

Returns:
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. ICU 2.0

Implements UObject.

Implemented in OlsonTimeZone, RuleBasedTimeZone, SimpleTimeZone, and VTimeZone.

Referenced by SimpleTimeZone::hasSameRules(), RuleBasedTimeZone::hasSameRules(), OlsonTimeZone::hasSameRules(), VTimeZone::operator==(), operator==(), SimpleTimeZone::operator==(), RuleBasedTimeZone::operator==(), OlsonTimeZone::operator==(), SimpleDateFormat::parse(), TimeZoneTest::TestCustomParse(), and ucal_getDSTSavings().

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index