Quantum 3
3.1.0
A variable sized bitmask over 32-bit words. More...
Public Member Functions | |
| BitSetRef32 (uint *bits, int bitsSize) | |
| Create a bitmask with the given bits and size. More... | |
| void | Clear (Int32 bit) |
| Remove the bit from the bitmask. More... | |
| void | ClearAll () |
| Clear all bits in the bitmask. More... | |
| readonly Iterator | GetEnumerator () |
| Returns an iterator that efficiently iterates the 1 bits in the set. More... | |
| readonly Boolean | IsSet (Int32 bit) |
| Check if a bit is set in the bitmask. More... | |
| void | Set (Int32 bit) |
| Set a bit in the bitmask. More... | |
Public Attributes | |
| readonly uint * | Bits |
| The words that hold the bits. More... | |
| readonly int | BitsSize |
| The number of bits that the bitmask can hold. More... | |
Properties | |
| readonly Int32 | Length [get] |
| Returns the size of the bitmask More... | |
A variable sized bitmask over 32-bit words.
|
inline |
Create a bitmask with the given bits and size.
| bits | The words that hold the bit information |
| bitsSize | The maximum bit index of the bitmask |
|
inline |
Set a bit in the bitmask.
| bit | Bit index, must be less than Length |
|
inline |
Remove the bit from the bitmask.
| bit | Bit to remove, must be less than Length |
|
inline |
Clear all bits in the bitmask.
|
inline |
|
inline |
Returns an iterator that efficiently iterates the 1 bits in the set.
| readonly uint* Quantum.BitSetRef32.Bits |
The words that hold the bits.
| readonly int Quantum.BitSetRef32.BitsSize |
The number of bits that the bitmask can hold.
|
get |
Returns the size of the bitmask