Public Types | |
typedef std::vector< std::string > | StringVector |
Public Member Functions | |
bool | intersects (const reference::Range &inRange) const |
Returns true if there is a range in this set that overlaps the specified range. | |
bool | contains (const reference::Location &loc) const |
Returns true if any range of this set contains the given location. | |
void | add (const std::string &rangeStr, const reference::CrrFile &ref) |
void | add (const StringVector &rangeStrSet, const reference::CrrFile &ref) |
bool cgatools::util::RangeSet::intersects | ( | const reference::Range & | inRange | ) | const |
Returns true if there is a range in this set that overlaps the specified range.
Zero-length overlap is allowed for empty ranges, therefore an empty range overlaps with itself. An empty range overlap includes begin of other range: [b,b) overlaps [a,b) and [b,c) and vise versa.