bool Record::lessThan(const Record *other) const { if (!sameChrom(other)) { return chromBefore(other); } if (_startPos != other->_startPos) { return _startPos < other->_startPos; } if (_endPos != other->_endPos) { return _endPos < other->_endPos; } return false; }
bool Record::operator < (const Record &other) const { if (!sameChrom(&other)) { return chromBefore(&other); } if (_startPos != other._startPos) { return _startPos < other._startPos; } if (_endPos != other._endPos) { return _endPos < other._endPos; } return false; }