TNL::BitSet32 Class Reference
#include <tnlBitSet.h>
Detailed Description
Represents a word of bits.
A helper class to perform operations on a set of 32 bits.
Constructor & Destructor Documentation
TNL::BitSet32::BitSet32 |
( |
|
) |
[inline] |
|
|
Default constructor initializes this bit set to all zeros.
|
TNL::BitSet32::BitSet32 |
( |
const BitSet32 & |
in_rCopy |
) |
[inline] |
|
TNL::BitSet32::BitSet32 |
( |
const U32 |
in_mask |
) |
[inline] |
|
|
Construct from an input U32.
|
Member Function Documentation
TNL::BitSet32::operator U32 |
( |
|
) |
const [inline] |
|
|
Returns the U32 representation of the bit set.
|
U32 TNL::BitSet32::getMask |
( |
|
) |
const [inline] |
|
|
Returns the U32 representation of the bit set.
|
void TNL::BitSet32::set |
( |
|
) |
[inline] |
|
|
Sets all the bits in the bit set to 1.
|
void TNL::BitSet32::set |
( |
const U32 |
m |
) |
[inline] |
|
|
Sets all the bits in the bit set that are set in m.
|
void TNL::BitSet32::set |
( |
BitSet32 |
s, |
|
|
bool |
b |
|
) |
[inline] |
|
|
For each bit set in s, sets or clears that bit in this, depending on whether b is true or false.
|
void TNL::BitSet32::clear |
( |
|
) |
[inline] |
|
|
Clears all the bits in the bit set to 0.
|
void TNL::BitSet32::clear |
( |
const U32 |
m |
) |
[inline] |
|
|
Clears all the bits in the bit set that are set in m.
|
void TNL::BitSet32::toggle |
( |
const U32 |
m |
) |
[inline] |
|
|
Flips all the bits in the bit set that are set in m.
|
bool TNL::BitSet32::test |
( |
const U32 |
m |
) |
const [inline] |
|
|
Test if the passed bits are set.
|
bool TNL::BitSet32::testStrict |
( |
const U32 |
m |
) |
const [inline] |
|
|
Test if the passed bits and only the passed bits are set.
|
BitSet32& TNL::BitSet32::operator= |
( |
const U32 |
m |
) |
[inline] |
|
BitSet32& TNL::BitSet32::operator|= |
( |
const U32 |
m |
) |
[inline] |
|
BitSet32& TNL::BitSet32::operator &= |
( |
const U32 |
m |
) |
[inline] |
|
BitSet32& TNL::BitSet32::operator^= |
( |
const U32 |
m |
) |
[inline] |
|
BitSet32 TNL::BitSet32::operator| |
( |
const U32 |
m |
) |
const [inline] |
|
BitSet32 TNL::BitSet32::operator & |
( |
const U32 |
m |
) |
const [inline] |
|
BitSet32 TNL::BitSet32::operator^ |
( |
const U32 |
m |
) |
const [inline] |
|
Field Documentation