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

UBool Measure::operator== ( const UObject other  )  const

Equality operator. Return true if this object is equal to the given object. ICU 3.0

Reimplemented in TimeUnitAmount.

Definition at line 49 of file measure.cpp.

References UObject::getDynamicClassID(), getNumber(), getUnit(), NULL, number, and unit.

Referenced by TimeUnitAmount::operator==().

    const Measure* m = (const Measure*) &other;
    return getDynamicClassID() == other.getDynamicClassID() &&
        number == m->getNumber() && 
        (unit != NULL && *unit == m->getUnit());

Generated by  Doxygen 1.6.0   Back to index