BitArray¶
High-level bit array handling utilities.
Overview¶
Typical use cases:
Handling bit array manipulation and storage
Header¶
<RaeptorCogs/BitArray.hpp>
Metadata¶
- Author
Estorc
- Version
v1.0
- Copyright
Copyright (c) 2025 Estorc MIT License.
Classes¶
Class |
Description |
|---|---|
|
BitArray class. |
-
class BitArray¶
BitArray class.
Represents a dynamic array of bits and provides utilities for manipulating them.
RaeptorCogs::BitArray bitArray; bitArray.set(5); bool isSet = bitArray.test(5); // true
Public Functions
-
inline BitArray &set(size_t index)¶
Set the bit at the specified index.
Note
Automatically resizes the underlying storage if the index is out of bounds.
- Parameters:
index – The index of the bit to set.
- Returns:
Reference to the BitArray for chaining.
-
inline BitArray &set(size_t index)¶
Functions¶
Function |
Description |
|---|---|
|
Stream output operator for BitArray. |