7 Loci::Loci(string chr, unsigned int pos) {
12 Loci::Loci(const Loci& l) {
17 Loci& Loci::operator=(const Loci& l) {
25 bool Loci::operator<(const Loci& a) const {
26 return((this->chr == a.chr)?(this->pos < a.pos):(this->chr < a.chr));
29 bool Loci::operator==(const Loci& a) const {
30 return(this->chr == a.chr && this->pos == a.pos);
33 bool Loci::operator<=(const Loci& a) const {
34 return((this->chr == a.chr)?(this->pos <= a.pos):(this->chr < a.chr));
37 bool Loci::operator>=(const Loci& a) const {
38 return((this->chr == a.chr)?(this->pos >= a.pos):(this->chr > a.chr));
41 bool Loci::operator>(const Loci& a) const {
42 return((this->chr == a.chr)?(this->pos > a.pos):(this->chr > a.chr));
46 ostream &operator<<( ostream &out, const Loci &h ) {
47 out << h.chr << "\t" << h.pos;