#include <uobject.h>
Public Member Functions | |
virtual | ~UObject () |
Destructor. | |
virtual UClassID | getDynamicClassID () const =0 |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. |
UObject inherits UMemory (starting with ICU 2.4), and all other public ICU C++ classes are derived from UObject (starting with ICU 2.2).
UObject contains common virtual functions like for ICU's "poor man's RTTI". It does not contain default implementations of virtual methods like getDynamicClassID to allow derived classes such as Format to declare these as pure virtual.
The clone() function is not available in UObject because it is not implemented by all ICU classes. Many ICU services provide a clone() function for their class trees, defined on the service's C++ base class, and all subclasses within that service class tree return a pointer to the service base class (which itself is a subclass of UObject). This is because some compilers do not support covariant (same-as-this) return types; cast to the appropriate subclass if necessary.
Definition at line 184 of file uobject.h.
virtual UObject::~UObject | ( | ) | [virtual] |
virtual UClassID UObject::getDynamicClassID | ( | ) | const [pure virtual] |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Implemented in BreakIterator, CanonicalIterator, ForwardCharacterIterator, DateInterval, Locale, Normalizer, ParsePosition, RuleBasedBreakIterator, ResourceBundle, StringCharacterIterator, UCharCharacterIterator, UnicodeFilter, UnicodeFunctor, UnicodeSet, UnicodeString, UnicodeSetIterator, BoyerMooreSearch, Calendar, ChoiceFormat, CollationElementIterator, Collator, CEList, StringList, CollData, CurrencyAmount, CurrencyUnit, DecimalFormatSymbols, DecimalFormat, DateFormatSymbols, DateIntervalFormat, DateIntervalInfo, DateTimePatternGenerator, DateTimeRule, FieldPosition, Formattable, Format, GregorianCalendar, MessageFormat, NumberFormat, PluralFormat, PluralRules, RuleBasedNumberFormat, RuleBasedTimeZone, RegexPattern, RegexMatcher, SimpleTimeZone, SimpleDateFormat, CollationKey, StringSearch, RuleBasedCollator, TimeZone, Transliterator, InitialTimeZoneRule, AnnualTimeZoneRule, TimeArrayTimeZoneRule, TimeZoneTransition, VTimeZone, LEFontInstance, LEGlyphStorage, LayoutEngine, ParagraphLayout::ParagraphLayout::Line, ParagraphLayout::ParagraphLayout::VisualRun, ParagraphLayout, RunArray, FontRuns, LocaleRuns, and ValueRuns.