|
That Terminal
A terminal emulator designed for video making purposes.
|
Public Types | |
| using | elem_t = unsigned long |
| Internal type of atoms in this array. | |
Public Member Functions | |
| constexpr void | set (std::size_t idx) |
| constexpr bool | test (std::size_t idx) const |
| constexpr void | set_n (std::size_t idx, std::size_t count) |
Public Attributes | |
| elem_t | data [nwords] {} |
| Storage of data. | |
Static Public Attributes | |
| static constexpr std::size_t | WordSize = sizeof(elem_t) * 8 |
| Number of bits per elem_t. | |
| static constexpr std::size_t | nwords = (N + WordSize-1) / WordSize |
| Number of elem_t's stored. | |
| static constexpr elem_t | full = ~elem_t{} |
| Bitmask of everything set. | |
A bitset structure that can be initialized at compile-time and read at both compile-time and run-time.
| N | number of bits that this set can store. |
|
inlineconstexpr |
Set bit at given index.
| idx | Index to set. Counting starts from zero, and must be less than N. |
|
inlineconstexpr |
Set a range of bits.
| idx | First bit to set |
| count | Count of bits to set |
|
inlineconstexpr |
Test bit at given index.
| idx | Index to read. Counting starts from zero, and must be less than N. |