awUtil::BitRef64 Class Reference


Detailed Description

BitRef64 class should not be used directly.

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

#include <awUtilBitField64.h>

List of all members.

Public Member Functions

  BitRef64 (BitField64 &, int)
  operator bool () const
BitRef64 operator= (bool)
BitRef64 operator= (const BitRef64 &)

Protected Attributes

BitField64 m_bitField
int  m_bit

Constructor & Destructor Documentation

BitRef64 ( BitField64 f,
int  b 
) [inline]
 : m_bitField(f),
   m_bit(b)
{
}

Member Function Documentation

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

Member Data Documentation


awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64
awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64 awUtil::BitRef64