| 1 | #include "UnitigMap.hpp" |
| 2 | |
| 3 | UnitigMapBase::UnitigMapBase(const size_t length) : len(length), dist(0), size(0), strand(true), isEmpty(true) {} |
| 4 | |
| 5 | UnitigMapBase::UnitigMapBase(const size_t start, const size_t length, const size_t unitig_sz, const bool strand) : |
| 6 | dist(start), len(length), size(unitig_sz), strand(strand), isEmpty(false) {} |
| 7 | |
| 8 | bool UnitigMapBase::operator==(const UnitigMapBase& o) const { |
| 9 | |
| 10 | return (len == o.len) && (dist == o.dist) && (size == o.size) && (strand == o.strand) && (isEmpty == o.isEmpty); |
| 11 | } |
| 12 | |
| 13 | bool UnitigMapBase::operator!=(const UnitigMapBase& o) const { |
| 14 | |
| 15 | return (len != o.len) || (dist != o.dist) || (size != o.size) || (strand != o.strand) || (isEmpty != o.isEmpty); |
| 16 | } |