icu::NoUnit Class Reference

Dimensionless unit for percent and permille. More...

#include <nounit.h>

Inheritance diagram for icu::NoUnit:
icu::MeasureUnit icu::UObject icu::UMemory

Public Member Functions

 NoUnit (const NoUnit &other)
 Copy operator.
virtual UObjectclone () const
 Return a polymorphic clone of this object.
virtual UClassID getDynamicClassID () const
 Returns a unique class ID for this object POLYMORPHICALLY.
virtual ~NoUnit ()
 Destructor.

Static Public Member Functions

static NoUnit base ()
 Returns an instance for the base unit (dimensionless and no scaling).
static NoUnit percent ()
 Returns an instance for percent, or 1/100 of a base unit.
static NoUnit permille ()
 Returns an instance for permille, or 1/1000 of a base unit.
static UClassID getStaticClassID ()
 Returns the class ID for this class.

Detailed Description

Dimensionless unit for percent and permille.

See also:
NumberFormatter
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Definition at line 32 of file nounit.h.


Constructor & Destructor Documentation

icu::NoUnit::NoUnit ( const NoUnit other  ) 

Copy operator.

Draft:
This API may be changed in the future versions and was introduced in ICU 60
virtual icu::NoUnit::~NoUnit (  )  [virtual]

Destructor.

Draft:
This API may be changed in the future versions and was introduced in ICU 60

Member Function Documentation

static NoUnit icu::NoUnit::base (  )  [static]

Returns an instance for the base unit (dimensionless and no scaling).

Returns:
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60
virtual UObject* icu::NoUnit::clone (  )  const [virtual]

Return a polymorphic clone of this object.

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

Draft:
This API may be changed in the future versions and was introduced in ICU 60

Reimplemented from icu::MeasureUnit.

virtual UClassID icu::NoUnit::getDynamicClassID (  )  const [virtual]

Returns a unique class ID for this object POLYMORPHICALLY.

This method implements a simple form of RTTI used by ICU.

Returns:
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Reimplemented from icu::MeasureUnit.

static UClassID icu::NoUnit::getStaticClassID (  )  [static]

Returns the class ID for this class.

This is used to compare to the return value of getDynamicClassID().

Returns:
The class ID for all objects of this class.
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Reimplemented from icu::MeasureUnit.

static NoUnit icu::NoUnit::percent (  )  [static]

Returns an instance for percent, or 1/100 of a base unit.

Returns:
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60
static NoUnit icu::NoUnit::permille (  )  [static]

Returns an instance for permille, or 1/1000 of a base unit.

Returns:
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60

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

Generated on 27 Mar 2018 for ICU 60.1 by  doxygen 1.6.1