Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34

//--------------
// Operations --
//--------------
bool DTSectCollId::operator==(const DTSectCollId& id) const {
  if (_wheel != id.wheel())
    return false;
  if (_sector != id.sector())
    return false;
  return true;
}

bool DTSectCollId::operator!=(const DTSectCollId& id) const { return !(*this == id); }

bool DTSectCollId::operator<(const DTSectCollId& id) const {
  if (wheel() < id.wheel())
    return true;
  if (wheel() > id.wheel())
    return false;

  if (sector() < id.sector())
    return true;
  if (sector() > id.sector())
    return false;

  return false;
}
DTSectCollId& DTSectCollId::operator=(const DTSectCollId& statId) {
  _wheel = statId._wheel;
  _sector = statId._sector;
  return *this;
}

//------------