awUtil::BitRef256 Class Reference


Detailed Description

BitRef256 class should not be used directly.

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

#include <awUtilBitField256.h>

List of all members.

Public Member Functions

  BitRef256 (BitField256 &, int)
  operator bool () const
BitRef256 operator= (bool)
BitRef256 operator= (const BitRef256 &)

Protected Attributes

BitField256 m_bitField
int  m_bit

Constructor & Destructor Documentation

BitRef256 ( BitField256 f,
int  b 
) [inline]
 : m_bitField(f),
   m_bit(b)
{
}

Member Function Documentation

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

Member Data Documentation


awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256
awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256 awUtil::BitRef256