35 Bit(
unsigned int shift);
42 void setMask(
unsigned int shift);
49 void set(
unsigned int& flags)
const;
56 void clear(
unsigned int& flags)
const;
63 bool isSet(
unsigned int flags)
const;
68 unsigned int mask()
const;
80 inline void Bit::set(
unsigned int& flags)
const 87 { flags &= (~mask_); }
93 {
return bool(flags & mask_); }
void set(unsigned int &flags) const
Set this bit in the flags parameter.
void clear(unsigned int &flags) const
Clear this bit in the flags parameter.
bool isSet(unsigned int flags) const
Is this bit set in the flags integer?
Utility classes for scientific computation.
void setMask(unsigned int shift)
Set or reset the bit mask.
Bit()
Default constructor.
unsigned int mask() const
Return integer with only this bit set.
Represents a specific bit location within an unsigned int.