An amount of a specified unit, consisting of a number and a Unit. More...
#include <measure.h>
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.
Measure objects are formatted by MeasureFormat.
Measure objects are immutable.
Definition at line 45 of file measure.h.
◆ Measure() [1/3]Construct an object with the given numeric amount and the given unit.
After this call, the caller must not delete the given unit object.
Default constructor.
Returns a unique class ID POLYMORPHICALLY.
Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.
Reimplemented from icu::UObject.
Reimplemented in icu::TimeUnitAmount, and icu::CurrencyAmount.
◆ getNumber()Return a reference to the numeric value of this object.
The numeric value may be of any numeric type supported by Formattable.
Definition at line 160 of file measure.h.
◆ getStaticClassID() static UClassID icu::Measure::getStaticClassID ( ) staticReturn the class ID for this class.
This is useful only for comparing to a return value from getDynamicClassID(). For example:
. Base* polymorphic_pointer = createPolymorphicObject(); . if (polymorphic_pointer->getDynamicClassID() == . erived::getStaticClassID()) ...
Return a reference to the unit of this object.
Definition at line 164 of file measure.h.
◆ operator!=() bool icu::Measure::operator!= ( const UObject & other ) const inlineInequality operator.
Returns true if this object is not equal to the other object.
Definition at line 98 of file measure.h.
References icu::operator==().
◆ operator=()Assignment operator.
Equality operator.
Return true if this object is equal to the given object.
The documentation for this class was generated from the following file:
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4