#include <measure.h>
Inheritance diagram for Measure:
Public Member Functions | |
Measure (const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec) | |
Construct an object with the given numeric amount and the given unit. | |
Measure (const Measure &other) | |
Copy constructor. | |
Measure & | operator= (const Measure &other) |
Assignment operator. | |
virtual UObject * | clone () const =0 |
Return a polymorphic clone of this object. | |
virtual | ~Measure () |
Destructor. | |
UBool | operator== (const UObject &other) const |
Equality operator. | |
const Formattable & | getNumber () const |
Return a reference to the numeric value of this object. | |
const MeasureUnit & | getUnit () const |
Return a reference to the unit of this object. | |
Protected Member Functions | |
Measure () | |
Default constructor. |
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.
Definition at line 41 of file measure.h.
|
Construct an object with the given numeric amount and the given unit. After this call, the caller must not delete the given unit object.
|
|
Copy constructor.
|
|
Destructor.
|
|
Default constructor.
|
|
Return a polymorphic clone of this object. The result will have the same class as returned by getDynamicClassID().
Implemented in CurrencyAmount. |
|
Return a reference to the numeric value of this object. The numeric value may be of any numeric type supported by Formattable.
|
|
Return a reference to the unit of this object.
|
|
Assignment operator.
|
|
Equality operator. Return true if this object is equal to the given object.
|