BLBitArray Class Referencefinal [¶]
BitArray container [C++ API].
Destroys the BitArray.
Tests whether the BitArray has a content.
This is essentially the opposite of is_empty().
Move assignment.
The other BitArray is reset by move assignment, so its state after the move operation is the same as a default constructed BitArray.
Copy assignment, performs weak copy of the data held by the other BitArray.
Clears the content of the BitArray and releases its data.
After reset the BitArray content matches a default constructed instance.
Swaps the content of this string with the other string.
Tests whether the BitArray is empty (has no content).
Returns true if the BitArray's size is zero.
Returns the size of the BitArray in bits.
Returns number of BitWords this BitArray uses.
Returns the capacity of the BitArray in bits.
Returns the number of bits set in the BitArray.
Returns the number of bits set in the given [start_bit, end_bit) range.
Returns bit data.
Returns a bit-value at the given bit_index.
Returns whether the bit-set has at least on bit in the given [start_bit, endbit) range.
Returns whether this BitArray subsumes other.
Returns whether this BitArray intersects with other.
Returns whether this BitArray and other are bitwise equal.
Compares this BitArray with other and returns either -1, 0, or 1.
Move assignment, the same as operator=, but returns a BLResult instead of this.
Copy assignment, the same as operator=, but returns a BLResult instead of this.
Replaces the content of the BitArray by bits specified by word_data of size word_count [the size is in uint32_t units].
Clears the content of the BitArray without releasing its dynamically allocated data, if possible.
Resizes the BitArray so its size matches n_bits.
Reserves n_bits in the BitArray (capacity would match n_bits) without changing its size.
Shrinks the capacity of the BitArray to match the actual content with the intention to save memory.
Sets a bit to true at the given bit_index.
Fills bits in [start_bit, end_bit) range to true.
Fills bits starting from bit_index specified by word_data and word_count to true (zeros in word_data are ignored).
This operation uses an OR operator - bits in word_data are combined with OR operator with existing bits in BitArray.
Sets a bit to false at the given bit_index.
Sets bits in [start_bit, end_bit) range to false.
Sets bits starting from bit_index specified by word_value to false (zeros in word_value are ignored).
This operation uses an AND_NOT operator - bits in word_data are negated and then combined with AND operator with existing bits in BitArray.
Sets bits starting from bit_index specified by word_data and word_count to false (zeros in word_data are ignored).
This operation uses an AND_NOT operator - bits in word_data are negated and then combined with AND operator with existing bits in BitArray.
Makes the BitArray mutable with the intention to replace all bits of it.
All bits in the BitArray will be set to zero.
Replaces a bit in the BitArray at the given bit_index to match bit_value.
Replaces bits starting from bit_index to match the bits specified by word_value.
Replaced bits from BitArray are not combined by using any operator, word_value is copied as is, thus replaces fully the existing bits.
Replaces bits starting from bit_index to match the bits specified by word_data and word_count.
Replaced bits from BitArray are not combined by using any operator, word_data is copied as is, thus replaces fully the existing bits.