|
ICU 57.1
57.1
|
UObject is the common ICU "boilerplate" class. More...
#include <uobject.h>
Public Member Functions | |
| virtual | ~UObject () |
| Destructor. More... | |
| virtual UClassID | getDynamicClassID () const |
| ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
UObject is the common ICU "boilerplate" 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, in particular a virtual destructor.
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.
|
virtual |
Destructor.
|
virtual |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
The base class implementation returns a dummy value.
Use compiler RTTI rather than ICU's "poor man's RTTI". Since ICU 4.6, new ICU C++ class hierarchies do not implement "poor man's RTTI".
Reimplemented in Transliterator, TimeZone, NumberFormat, Collator, Calendar, UnicodeFunctor, ForwardCharacterIterator, BreakIterator, VTimeZone, TimeZoneTransition, TimeArrayTimeZoneRule, AnnualTimeZoneRule, InitialTimeZoneRule, TimeUnitFormat, TimeUnitAmount, RuleBasedCollator, SimpleDateFormat, SimpleTimeZone, RuleBasedTimeZone, RuleBasedNumberFormat, MessageFormat, Measure, MeasureUnit, MeasureFormat, GregorianCalendar, DateTimeRule, DateIntervalFormat, DecimalFormat, ChoiceFormat, UnicodeSet, UCharCharacterIterator, StringCharacterIterator, RuleBasedBreakIterator, DateInterval, ValueRuns, LocaleRuns, FontRuns, RunArray, ParagraphLayout, ParagraphLayout::VisualRun, ParagraphLayout::Line, LEGlyphStorage, LEFontInstance, LayoutEngine, TimeZoneFormat, TimeUnit, StringSearch, CollationKey, SelectFormat, RegexMatcher, RegexPattern, PluralRules, PluralFormat, NumberingSystem, Formattable, FieldPosition, DateTimePatternGenerator, DateIntervalInfo, DateFormatSymbols, DecimalFormatSymbols, CurrencyUnit, CurrencyPluralInfo, CurrencyAmount, CompactDecimalFormat, CollationElementIterator, UnicodeSetIterator, UnicodeString, ResourceBundle, ParsePosition, Normalizer, Locale, and CanonicalIterator.