ICU 4.2.1
|
UObject is the common ICU "boilerplate" class. More...
#include <uobject.h>
Public Member Functions | |
virtual | ~UObject () |
Destructor. More... | |
virtual UClassID | getDynamicClassID () const =0 |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More... | |
Additional Inherited Members | |
![]() | |
static void * | operator new (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new[] (size_t size) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete (void *p) |
Override for ICU4C C++ memory management. More... | |
static void | operator delete[] (void *p) |
Override for ICU4C C++ memory management. More... | |
static void * | operator new (size_t, void *ptr) |
Override for ICU4C C++ memory management for STL. More... | |
static void | operator delete (void *, void *) |
Override for ICU4C C++ memory management for STL. 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 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.
|
virtual |
Destructor.
|
pure virtual |
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
Implemented in UnicodeString, DecimalFormat, UnicodeSet, Transliterator, Calendar, RegexMatcher, RuleBasedNumberFormat, TimeArrayTimeZoneRule, MessageFormat, Collator, SimpleTimeZone, NumberFormat, Normalizer, Locale, SimpleDateFormat, TimeZone, ValueRuns, ChoiceFormat, AnnualTimeZoneRule, RuleBasedBreakIterator, ParagraphLayout, LEGlyphStorage, Formattable, DateIntervalFormat, PluralFormat, LEFontInstance, LocaleRuns, RuleBasedCollator, LayoutEngine, ResourceBundle, DateFormatSymbols, GregorianCalendar, VTimeZone, StringSearch, CollData, RegexPattern, InitialTimeZoneRule, UCharCharacterIterator, FontRuns, RuleBasedTimeZone, DateTimePatternGenerator, DateIntervalInfo, ParagraphLayout::VisualRun, CollationElementIterator, DecimalFormatSymbols, PluralRules, DateTimeRule, UnicodeSetIterator, FieldPosition, Format, CollationKey, StringList, TimeUnitFormat, BoyerMooreSearch, TimeZoneTransition, CurrencyPluralInfo, ParsePosition, RunArray, StringCharacterIterator, ParagraphLayout::Line, NumberingSystem, BreakIterator, CanonicalIterator, ForwardCharacterIterator, TimeUnitAmount, CEList, UnicodeFilter, TimeUnit, UnicodeFunctor, CurrencyAmount, DateInterval, and CurrencyUnit.