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