Lines Matching defs:overlaps
104 overlaps(const Cntnr& r_c, const interval& r_interval);
135 overlaps(const Cntnr& r_c, const interval& r_interval);
170 overlaps(const Cntnr& r_c, const interval& r_interval)
180 // Check whether r_interval overlaps the current interval.
214 // Test overlaps.
217 assert(overlaps(c, interval(145, 165)) == true);
219 assert(overlaps(c, interval(145, 155)) == true);
220 assert(overlaps(c, interval(165, 175)) == false);
221 assert(overlaps(c, interval(100201, 100203)) == false);
229 // Test overlaps again.
231 assert(overlaps(c, interval(145, 165)) == false);
232 assert(overlaps(c, interval(165, 175)) == false);
233 assert(overlaps(c, interval(0, 300000)) == true);