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