Lines Matching refs:CInterval
53 typedef typename CoordTraits<C>::IntervalType CInterval;
81 static CInterval from_range(InputIterator start, InputIterator end) {
83 CInterval result(*start++);
88 static CInterval from_array(C const *c, unsigned n) {
89 CInterval result = from_range(c, c+n);
121 bool contains(CInterval const &val) const {
125 bool intersects(CInterval const &val) const {
185 void unionWith(CInterval const &a) {
213 Self &operator+=(CInterval const &o) {
222 Self &operator-=(CInterval const &o) {
231 Self &operator|=(CInterval const &o) {
236 bool operator==(CInterval const &other) const {
260 typedef typename CoordTraits<C>::IntervalType CInterval;
262 typedef boost::optional<CInterval> Base;
269 GenericOptInterval(GenericInterval<C> const &a) : Base(CInterval(a)) {}
271 GenericOptInterval(C u) : Base(CInterval(u)) {}
273 GenericOptInterval(C u, C v) : Base(CInterval(u,v)) {}
289 GenericOptInterval<C> ret(CInterval::from_range(start, end));
313 *this = CInterval(u, v);