mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-05-02 14:54:13 +02:00
clang-format
This commit is contained in:
+10
-13
@@ -51,23 +51,20 @@ void assert_failed(const std::string &msg) {
|
||||
// throw std::runtime_error("Could not decode detector to string");
|
||||
// }
|
||||
|
||||
|
||||
BitOffset::BitOffset(uint32_t offset){
|
||||
if (offset>7)
|
||||
throw std::runtime_error(fmt::format("{} BitOffset needs to be <8: Called with {}", LOCATION, offset));
|
||||
BitOffset::BitOffset(uint32_t offset) {
|
||||
if (offset > 7)
|
||||
throw std::runtime_error(fmt::format(
|
||||
"{} BitOffset needs to be <8: Called with {}", LOCATION, offset));
|
||||
|
||||
m_offset = static_cast<uint8_t>(offset);
|
||||
|
||||
}
|
||||
|
||||
bool BitOffset::operator==(const BitOffset& other) const {
|
||||
return m_offset == other.m_offset;
|
||||
}
|
||||
|
||||
bool BitOffset::operator<(const BitOffset& other) const {
|
||||
return m_offset < other.m_offset;
|
||||
}
|
||||
|
||||
bool BitOffset::operator==(const BitOffset &other) const {
|
||||
return m_offset == other.m_offset;
|
||||
}
|
||||
|
||||
bool BitOffset::operator<(const BitOffset &other) const {
|
||||
return m_offset < other.m_offset;
|
||||
}
|
||||
|
||||
} // namespace aare
|
||||
Reference in New Issue
Block a user