ICU 71.1 71.1

Public Member Functions
icu::UObject Class Reference

UObject is the common ICU "boilerplate" class. More...

`#include <uobject.h>`

Inheritance diagram for icu::UObject:

## 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...

## Detailed Description

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 (which itself is a subclass of UObject).

Stable:
  ICU 2.2

Definition at line 223 of file uobject.h.

## Constructor & Destructor Documentation

## ◆ ~UObject()

virtual icu::UObject::~UObject | ( |  | ) |
| virtual

Destructor.

Stable:
  ICU 2.2

## Member Function Documentation

## ◆ getDynamicClassID()

virtual UClassID icu::UObject::getDynamicClassID | ( |  | ) | const
| 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".

Stable:
  ICU 2.2

Reimplemented in icu::DecimalFormat, icu::Transliterator, icu::Calendar, icu::NumberFormat, icu::Collator, icu::TimeZone, icu::BreakIterator, icu::ForwardCharacterIterator, icu::UnicodeFunctor, icu::UnicodeSet, icu::SimpleDateFormat, icu::RuleBasedNumberFormat, icu::MessageFormat, icu::TimeArrayTimeZoneRule, icu::SimpleTimeZone, icu::DateIntervalFormat, icu::MeasureUnit, icu::AnnualTimeZoneRule, icu::RuleBasedBreakIterator, icu::GregorianCalendar, icu::VTimeZone, icu::ChoiceFormat, icu::RuleBasedCollator, icu::UCharCharacterIterator, icu::InitialTimeZoneRule, icu::RuleBasedTimeZone, icu::MeasureFormat, icu::DateTimeRule, icu::TimeZoneTransition, icu::TimeUnitFormat, icu::StringCharacterIterator, icu::TimeUnitAmount, icu::Measure, icu::DateInterval, icu::CompactDecimalFormat, icu::UnicodeString, icu::RegexMatcher, icu::Locale, icu::Normalizer, icu::TimeZoneFormat, icu::DateFormatSymbols, icu::Formattable, icu::DateTimePatternGenerator, icu::RegexPattern, icu::PluralRules, icu::PluralFormat, icu::ResourceBundle, icu::StringSearch, icu::DecimalFormatSymbols, icu::SelectFormat, icu::DateIntervalInfo, icu::CollationElementIterator, icu::UnicodeSetIterator, icu::CollationKey, icu::FieldPosition, icu::NumberingSystem, icu::CurrencyPluralInfo, icu::ParsePosition, icu::CanonicalIterator, icu::CurrencyUnit, icu::CurrencyAmount, icu::TimeUnit, icu::ValueRuns, icu::ParagraphLayout, icu::LocaleRuns, icu::FontRuns, icu::ParagraphLayout::VisualRun, icu::RunArray, and icu::ParagraphLayout::Line.

The documentation for this class was generated from the following file:

- uobject.h