webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Public Member Functions | List of all members
UObject Class Reference

#include <uobject.h>

Inheritance diagram for UObject:
UMemory UMemory UMemory ForwardCharacterIterator ForwardCharacterIterator Replaceable Replaceable Replaceable StringEnumeration StringEnumeration StringEnumeration

Public Member Functions

virtual ~UObject ()
 
virtual UClassID getDynamicClassID () const
 
virtual ~UObject ()
 
virtual UClassID getDynamicClassID () const
 
virtual ~UObject ()
 
virtual UClassID getDynamicClassID () const
 

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

ICU 2.2

Constructor & Destructor Documentation

◆ ~UObject() [1/3]

virtual UObject::~UObject ( )
virtual

Destructor.

ICU 2.2

◆ ~UObject() [2/3]

virtual UObject::~UObject ( )
virtual

Destructor.

ICU 2.2

◆ ~UObject() [3/3]

virtual UObject::~UObject ( )
virtual

Destructor.

ICU 2.2

Member Function Documentation

◆ getDynamicClassID() [1/3]

virtual UClassID 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".

ICU 2.2

Reimplemented in UnicodeString, UnicodeString, UnicodeString, ForwardCharacterIterator, and ForwardCharacterIterator.

◆ getDynamicClassID() [2/3]

virtual UClassID 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".

ICU 2.2

Reimplemented in UnicodeString, UnicodeString, UnicodeString, ForwardCharacterIterator, and ForwardCharacterIterator.

◆ getDynamicClassID() [3/3]

virtual UClassID 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".

ICU 2.2

Reimplemented in UnicodeString, UnicodeString, UnicodeString, ForwardCharacterIterator, and ForwardCharacterIterator.


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