awUtil::BitRef32 Class Reference


Detailed Description

BitRef32 class should not be used directly.

It is just a helper class for BitField32, so that we can do something like "bitField32[14] = true;"

#include <awUtilBitField32.h>

List of all members.

Public Member Functions

  BitRef32 (BitField32 &, int)
  operator bool () const
BitRef32 operator= (bool)
BitRef32 operator= (const BitRef32 &)

Protected Attributes

BitField32 m_bitField
int  m_bit

Constructor & Destructor Documentation

BitRef32 ( BitField32 f,
int  b 
) [inline]
 : m_bitField(f),
   m_bit(b)
{
}

Member Function Documentation

operator bool ( ) const [inline]
{
    return m_bitField.testBit(m_bit);
}
BitRef32 & operator= ( bool  b ) [inline]
{
    m_bitField.setBit(m_bit, b); return *this;
}
BitRef32 & operator= ( const BitRef32 r ) [inline]
{
    return (*this = bool(r));
}

Member Data Documentation


awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32
awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32 awUtil::BitRef32