#include <tnlBitSet.h>
Public Methods | |
| BitSet32 () | |
| Default constructor initializes this bit set to all zeros. | |
| BitSet32 (const BitSet32 &in_rCopy) | |
| Copy constructor. | |
| BitSet32 (const U32 in_mask) | |
| Construct from an input U32. | |
Accessors | |
| operator U32 () const | |
| Returns the U32 representation of the bit set. | |
| U32 | getMask () const |
| Returns the U32 representation of the bit set. | |
Mutators | |
Most of these methods take a word (ie, a BitSet32) of bits to operate with. | |
| void | set () |
| Sets all the bits in the bit set to 1. | |
| void | set (const U32 m) |
| Sets all the bits in the bit set that are set in m. | |
| void | set (BitSet32 s, bool b) |
| For each bit set in s, sets or clears that bit in this, depending on whether b is true or false. | |
| void | clear () |
| Clears all the bits in the bit set to 0. | |
| void | clear (const U32 m) |
| Clears all the bits in the bit set that are set in m. | |
| void | toggle (const U32 m) |
| Flips all the bits in the bit set that are set in m. | |
| bool | test (const U32 m) const |
| Test if the passed bits are set. | |
| bool | testStrict (const U32 m) const |
| Test if the passed bits and only the passed bits are set. | |
| BitSet32 & | operator= (const U32 m) |
| BitSet32 & | operator|= (const U32 m) |
| BitSet32 & | operator &= (const U32 m) |
| BitSet32 & | operator^= (const U32 m) |
| BitSet32 | operator| (const U32 m) const |
| BitSet32 | operator & (const U32 m) const |
| BitSet32 | operator^ (const U32 m) const |
A helper class to perform operations on a set of 32 bits.
Definition at line 40 of file tnlBitSet.h.
1.2.18