// Inequality Operator bool DoubleExp::operator!=(const double other) { // Create temporary DoubleExp from the other value DoubleExp otherValue(other); if (otherValue.exponent_ != exponent_) return true; if (fabs(otherValue.mantissa_ - mantissa_) > 1.0e-8) return true; return false; }
bool nImO::Array::deeplyEqualTo (const nImO::Value & other) const { ODL_OBJENTER(); //#### ODL_P1("other = ", &other); //#### bool result = (&other == this); if (! result) { const Array * otherPtr = other.asArray(); if (otherPtr && (size() == otherPtr->size())) { const_iterator thisWalker(inherited2::begin()); const_iterator otherWalker(otherPtr->inherited2::begin()); for (result = true; result && (thisWalker != inherited2::end()); ++thisWalker, ++otherWalker) { SpValue thisValue(*thisWalker); SpValue otherValue(*otherWalker); if ((nullptr != thisValue) && (nullptr != otherValue)) { result = thisValue->deeplyEqualTo(*otherValue); } else { result = false; } } } } ODL_OBJEXIT_B(result); //#### return result; } // nImO::Array::deeplyEqualTo