13operator<<(std::ostream& os,
const BeamId& item)
15 os <<
"[Sector: " <<
static_cast<uint16_t
>(item.
GetSector())
27 m_elevation = elevation;
55BeamId::GetEmptyBeamId()
66static constexpr uint32_t
67Cantor(uint16_t x1_16, uint16_t x2_16)
71 return (((x1 + x2) * (x1 + x2 + 1)) / 2) + x2;
77 return Cantor(m_sector,
static_cast<uint16_t
>(m_elevation));
83 return std::hash<uint32_t>()(x.
GetCantor());
Representation of a beam id.
uint16_t GetSector() const
Extract the sector from the beam id.
uint32_t GetCantor() const
double GetElevation() const
Extract the elevation from the beam id.
BeamId()
Default constructor which created beamId with 0 sector and 0 elevation.
bool operator!=(const BeamId &p) const
Overrides != operator for the general use case.
bool operator==(const BeamId &p) const
Objects of this class are used as key in hash table. This class must implement operator ==() to handl...
const BeamId PREDEFINED_BEAM_ID
Reserved ID for the predefined directional beam if it cannot be expressed through sector and elevatio...
const BeamId OMNI_BEAM_ID
Name of the OMNI beam.
size_t operator()(const BeamId &x) const
operator ()