BitSet32 Class Reference#include <bitSet.h>
Detailed Description
A convenience class to manipulate a set of bits.
Notice that bits are accessed directly, ie, by passing a variable with the relevant bit set or not, instead of passing the index of the relevant bit.
Constructor & Destructor Documentation
BitSet32::BitSet32 |
( |
|
) |
[inline] |
BitSet32::BitSet32 |
( |
const BitSet32 & |
in_rCopy |
) |
[inline] |
BitSet32::BitSet32 |
( |
const U32 |
in_mask |
) |
[inline] |
Member Function Documentation
BitSet32::operator U32 |
( |
|
) |
const [inline] |
U32 BitSet32::getMask |
( |
|
) |
const [inline] |
void BitSet32::set |
( |
|
) |
[inline] |
void BitSet32::set |
( |
const U32 |
m |
) |
[inline] |
Set the specified bit(s) to true.
Masked-set the bitset; ie, using s as the mask and then setting the masked bits to b.
void BitSet32::clear |
( |
|
) |
[inline] |
void BitSet32::clear |
( |
const U32 |
m |
) |
[inline] |
Clear the specified bit(s).
void BitSet32::toggle |
( |
const U32 |
m |
) |
[inline] |
Toggle the specified bit(s).
bool BitSet32::test |
( |
const U32 |
m |
) |
const [inline] |
Are any of the specified bit(s) set?
bool BitSet32::testStrict |
( |
const U32 |
m |
) |
const [inline] |
Are ALL the specified bit(s) set?
BitSet32& BitSet32::operator|= |
( |
const U32 |
m |
) |
[inline] |
BitSet32& BitSet32::operator &= |
( |
const U32 |
m |
) |
[inline] |
BitSet32& BitSet32::operator^= |
( |
const U32 |
m |
) |
[inline] |
BitSet32 BitSet32::operator| |
( |
const U32 |
m |
) |
const [inline] |
BitSet32 BitSet32::operator & |
( |
const U32 |
m |
) |
const [inline] |
BitSet32 BitSet32::operator^ |
( |
const U32 |
m |
) |
const [inline] |
Field Documentation
Internal representation of bitset.
|