Lines Matching defs:other
112 Interval operator| (const Interval& other) const
114 return Interval(m_hasNaN || other.m_hasNaN,
115 de::min(m_lo, other.m_lo),
116 de::max(m_hi, other.m_hi),
117 de::min(m_warningLo, other.m_warningLo),
118 de::max(m_warningHi, other.m_warningHi));
121 Interval& operator|= (const Interval& other)
123 return (*this = *this | other);
126 Interval operator& (const Interval& other) const
128 return Interval(m_hasNaN && other.m_hasNaN,
129 de::max(m_lo, other.m_lo),
130 de::min(m_hi, other.m_hi),
131 de::max(m_warningLo, other.m_warningLo),
132 de::min(m_warningHi, other.m_warningHi));
135 Interval& operator&= (const Interval& other)
137 return (*this = *this & other);
140 bool contains (const Interval& other) const
142 return (other.lo() >= lo() && other.hi() <= hi() &&
143 (!other.hasNaN() || hasNaN()));
146 bool containsWarning(const Interval& other) const
148 return (other.lo() >= warningLo() && other.hi() <= warningHi() &&
149 (!other.hasNaN() || hasNaN()));
152 bool intersects (const Interval& other) const
154 return ((other.hi() >= lo() && other.lo() <= hi()) ||
155 (other.hasNaN() && hasNaN()));
198 bool operator== (const Interval& other) const
200 return ((m_hasNaN == other.m_hasNaN) &&
201 ((empty() && other.empty()) ||
202 (m_lo == other.m_lo && m_hi == other.m_hi)));