Lines Matching refs:this
11 * Public License Version 1.1 (the "MPL"). If you do not alter this
12 * notice, a recipient may use your version of this file under either
15 * You should have received a copy of the LGPL along with this library
18 * You should have received a copy of the MPL along with this library
21 * The contents of this file are subject to the Mozilla Public License
22 * Version 1.1 (the "License"); you may not use this file except in
116 /** @brief Check whether the interval includes this number. */
126 return contains(val.min()) || contains(val.max()) || val.contains(*this);
169 * After this method, the interval's length (extent) will be increased by
183 * It might also contain some points which didn't belong to either - this happens
199 return *this;
204 return *this;
216 return *this;
223 // equal to *this += -o
226 return *this;
233 return *this;
294 /** @brief Check whether this interval is empty. */
295 bool empty() { return !*this; }
300 if (*this) { // check that we are not empty
301 (*this)->unionWith(*a);
303 *this = *a;
308 if (o && *this) {
309 if (!*this) return;
310 C u = std::max((*this)->min(), o->min());
311 C v = std::min((*this)->max(), o->max());
313 *this = CInterval(u, v);
317 (*static_cast<Base*>(this)) = boost::none;
321 return *this;
325 return *this;