|
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 index, unsigned value) |
| constexpr unsigned | get (std::size_t index) const |
Static Public Member Functions | |
| static constexpr unsigned | get_idx (std::size_t index) |
| static constexpr unsigned | get_from (elem_t elem, std::size_t index) |
Public Attributes | |
| elem_t | data [n_mapwords] {} |
| Storage of data. | |
Static Public Attributes | |
| static constexpr unsigned | elems_per_mapword = sizeof(elem_t)*8 / bits_per_elem |
| Number of elements in each atom. | |
| static constexpr unsigned | n_mapwords = (nwords + elems_per_mapword-1) / elems_per_mapword |
| Number of atoms needed to store data. | |
An array structure that can be initialized at compile-time and read at both compile-time and run-time. The number of elements and the bit-width of each element must be specified at compile-time. All elements have a maximum bit-width, and exactly that number of bits is used to store the data.
|
inlineconstexpr |
Read value at given index.
| index | Index to read at. |
|
inlinestaticconstexpr |
Read value from internal element.
| elem | Copy of the internal element that stores the value. |
| index | Index from which to read. |
|
inlinestaticconstexpr |
Determine the internal array index at which the given index is stored.
| index | Index to query. |
|
inlineconstexpr |
Set value at given index.
| index | Index to set at. Counting starts from zero, and must be less than nwords. |
| value | Value to assign to that index. |