Logo Search packages:      
Sourcecode: icu version File versions  Download package

Measure Class Reference

#include <measure.h>

Inheritance diagram for Measure:

UObject UMemory CurrencyAmount TimeUnitAmount

List of all members.

Detailed Description

An amount of a specified unit, consisting of a number and a Unit. For example, a length measure consists of a number and a length unit, such as feet or meters. This is an abstract class. Subclasses specify a concrete Unit type.

Measure objects are parsed and formatted by subclasses of MeasureFormat.

Measure objects are immutable.

This is an abstract class.

Alan Liu ICU 3.0

Definition at line 45 of file measure.h.

Public Member Functions

virtual UObjectclone () const =0
virtual UClassID getDynamicClassID () const =0
const FormattablegetNumber () const
const MeasureUnitgetUnit () const
 Measure (const Measure &other)
 Measure (const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec)
Measureoperator= (const Measure &other)
UBool operator== (const UObject &other) const
virtual ~Measure ()

Static Public Member Functions

static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Protected Member Functions

 Measure ()

Private Attributes

Formattable number

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

Generated by  Doxygen 1.6.0   Back to index