BitRef class should not be used directly.
It is just a helper class for BitField, so that we can do something like "bitfield[14] = true;"
#include <awUtilBitField.h>
Public Member Functions |
|
| BitRef (BitField &, int bit) | |
| operator bool () const | |
| BitRef & | operator= (bool) |
| BitRef & | operator= (const BitRef &) |
Protected Attributes |
|
| BitField & | m_bitField |
| int | m_bit |
| BitRef | ( | BitField & | f, |
| int | bit | ||
| ) | [inline] |
: m_bitField(f), m_bit(b) {}
| operator bool | ( | ) | const [inline] |
{
return m_bitField.testBit(m_bit);
}
| BitRef & operator= | ( | bool | b | ) | [inline] |
{
m_bitField.setBit(m_bit, b);
return *this;
}
BitField& m_bitField
[protected] |
int m_bit
[protected] |