34 inline explicit constexpr Coordinate(
float lng,
float lat)
40 inline bool isValid()
const
42 return !std::isnan(latitude) && !std::isnan(longitude);
45 inline constexpr bool operator==(
Coordinate other)
const
47 return latitude == other.latitude && longitude == other.longitude;
64 , m_value((num & (0xFF << (N-1)*8)) >> (N-1)*8)
69 if (m_value == other.m_value) {
76 if (m_value == other.m_value) {
83 if (m_value == other.m_value) {
86 return m_value < other.m_value;
96 setValue(value() | num);
100 inline constexpr operator uint32_t()
const
105 inline constexpr uint32_t value()
const
111 inline constexpr void setValue(uint32_t num)
113 m_value = (num & (0xFF << (N-1)*8)) >> (N-1)*8;
125 : m_value(num & 0xFF)
128 inline constexpr bool operator==(UnalignedNumber<1> other)
const
130 return m_value == other.m_value;
132 inline constexpr bool operator!=(UnalignedNumber<1> other)
const
134 return m_value != other.m_value;
136 inline constexpr bool operator<(UnalignedNumber<1> other)
const
138 return m_value < other.m_value;
141 inline constexpr uint32_t value()
const
147 inline constexpr void setValue(uint32_t num)
149 m_value = num & 0xFF;
Unalinged storage of a numerical value.
Classes for reservation/travel data models, data extraction and data augmentation.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:58 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.