ICU 50.1.2  50.1.2
Public Member Functions | Protected Member Functions
icu::MeasureUnit Class Referenceabstract

A unit such as length, mass, volume, currency, etc. More...

#include <measunit.h>

Inheritance diagram for icu::MeasureUnit:
icu::UObject icu::UMemory icu::CurrencyUnit icu::TimeUnit

Public Member Functions

virtual UObjectclone () const =0
 Return a polymorphic clone of this object. More...
 
virtual ~MeasureUnit ()
 Destructor. More...
 
virtual UBool operator== (const UObject &other) const =0
 Equality operator. More...
 
- Public Member Functions inherited from icu::UObject
virtual ~UObject ()
 Destructor. More...
 
virtual UClassID getDynamicClassID () const =0
 ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class. More...
 

Protected Member Functions

 MeasureUnit ()
 Default constructor. More...
 

Detailed Description

A unit such as length, mass, volume, currency, etc.

A unit is coupled with a numeric amount to produce a Measure.

This is an abstract class.

Author
Alan Liu
Stable:
ICU 3.0

Definition at line 36 of file measunit.h.

Constructor & Destructor Documentation

virtual icu::MeasureUnit::~MeasureUnit ( )
virtual

Destructor.

Stable:
ICU 3.0
icu::MeasureUnit::MeasureUnit ( )
protected

Default constructor.

Stable:
ICU 3.0

Member Function Documentation

virtual UObject* icu::MeasureUnit::clone ( ) const
pure virtual

Return a polymorphic clone of this object.

The result will have the same class as returned by getDynamicClassID().

Stable:
ICU 3.0

Implemented in icu::TimeUnit, and icu::CurrencyUnit.

virtual UBool icu::MeasureUnit::operator== ( const UObject other) const
pure virtual

Equality operator.

Return true if this object is equal to the given object.

Stable:
ICU 3.0

Implemented in icu::TimeUnit, and icu::CurrencyUnit.


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