File: HoleXY.cpp

package info (click to toggle)
pbseqlib 0~20161219-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,924 kB
  • ctags: 5,123
  • sloc: cpp: 82,727; makefile: 305; python: 239; sh: 8
file content (14 lines) | stat: -rw-r--r-- 277 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "HoleXY.hpp"

bool HoleXY::operator<(const HoleXY &rhs) const {
    return *this < rhs.xy;
}

bool HoleXY::operator<(const int16_t xyP[2]) const {
    if (xy[0] == xyP[0]) {
        return xy[1] < xyP[1];
    }
    else {
        return xy[0] < xyP[0];
    }
}