Пример #1
0
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;
}
Пример #2
0
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;
}