Exemple #1
0
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;
}
Exemple #2
0
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;

}