15class Lifetime :
public boost::totally_ordered<Lifetime>
18 static constexpr uint8_t multiplier_mask = 0xFC;
19 static constexpr uint8_t base_mask = 0x03;
22 Fifty_Milliseconds = 0,
28 static const Lifetime zero();
33 uint8_t raw()
const {
return m_lifetime; }
34 void raw(uint8_t raw) { m_lifetime = raw; }
36 bool operator<(
const Lifetime&)
const;
37 bool operator==(
const Lifetime&)
const;
43 units::Duration
decode()
const;
50 void encode(units::Duration);