21 BitField(
unsigned int offset_,
unsigned int bits_ );
24 bool encode(
unsigned int value, T&
id )
const;
unsigned int decode(T id) const
returns the result of decode the input id
unsigned int m_bits
position of the first bit manipulated by the BitField
unsigned int m_maxValue
number of m_bits that the BitField is allowed to manipulate
unsigned int m_mask
maximum allow value
BitField(unsigned int offset_, unsigned int bits_)
constructor, taking the offset (position of the first bit) and the number of bits No range checking i...
bool encode(unsigned int value, T &id) const
encode a value into id, return false if the value is out of range
Ensure that the ATLAS eigen extensions are properly loaded.