Quantum 3 3.1.0

Public Member Functions | Public Attributes | Properties | List of all members
Quantum.BitSetRef32 Struct Reference

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...
 

Detailed Description

A variable sized bitmask over 32-bit words.

Constructor & Destructor Documentation

◆ BitSetRef32()

Quantum.BitSetRef32.BitSetRef32 ( uint *  bits,
int  bitsSize 
)
inline

Create a bitmask with the given bits and size.

Parameters
bitsThe words that hold the bit information
bitsSizeThe maximum bit index of the bitmask

Member Function Documentation

◆ Set()

void Quantum.BitSetRef32.Set ( Int32  bit)
inline

Set a bit in the bitmask.

Parameters
bitBit index, must be less than Length

◆ Clear()

void Quantum.BitSetRef32.Clear ( Int32  bit)
inline

Remove the bit from the bitmask.

Parameters
bitBit to remove, must be less than Length

◆ ClearAll()

void Quantum.BitSetRef32.ClearAll ( )
inline

Clear all bits in the bitmask.

◆ IsSet()

readonly Boolean Quantum.BitSetRef32.IsSet ( Int32  bit)
inline

Check if a bit is set in the bitmask.

Parameters
bitBit to check, must be less than Length
Returns

◆ GetEnumerator()

readonly Iterator Quantum.BitSetRef32.GetEnumerator ( )
inline

Returns an iterator that efficiently iterates the 1 bits in the set.

Member Data Documentation

◆ Bits

readonly uint* Quantum.BitSetRef32.Bits

The words that hold the bits.

◆ BitsSize

readonly int Quantum.BitSetRef32.BitsSize

The number of bits that the bitmask can hold.

Property Documentation

◆ Length

readonly Int32 Quantum.BitSetRef32.Length
get

Returns the size of the bitmask