214 |
inline bool operator== (const range_t& other) const { |
inline bool operator== (const range_t& other) const { |
215 |
return low == other.low && high == other.high; |
return low == other.low && high == other.high; |
216 |
} |
} |
217 |
|
|
218 |
|
inline bool overlaps(uint16_t scalar) const { |
219 |
|
return low <= scalar && scalar <= high; |
220 |
|
} |
221 |
|
|
222 |
|
inline bool overlaps(const range_t& other) const { |
223 |
|
return overlaps(other.low) || overlaps(other.high) || |
224 |
|
other.overlaps(low) || other.overlaps(high); |
225 |
|
} |
226 |
}; |
}; |
227 |
|
|
228 |
/** Defines Sample Loop Points. */ |
/** Defines Sample Loop Points. */ |