Lines Matching refs:range
60 bool Range::Intersects(const Range& range) const { in Intersects()
61 return IsValid() && range.IsValid() && in Intersects()
62 !(range.GetMax() < GetMin() || range.GetMin() >= GetMax()); in Intersects()
65 bool Range::Contains(const Range& range) const { in Contains()
66 return IsValid() && range.IsValid() && in Contains()
67 GetMin() <= range.GetMin() && range.GetMax() <= GetMax(); in Contains()
70 Range Range::Intersect(const Range& range) const { in Intersect()
71 size_t min = std::max(GetMin(), range.GetMin()); in Intersect()
72 size_t max = std::min(GetMax(), range.GetMax()); in Intersect()
84 std::ostream& operator<<(std::ostream& os, const Range& range) { in operator <<() argument
85 return os << range.ToString(); in operator <<()