|
MaxMatrix
Drive chained 8x8 LED dot matrix modules with MAX7219.
|
A C array of N elements that knows its size. More...
#include <array.h>
Public Types | |
| using | value_type = T |
| using | size_type = size_t |
Public Member Functions | |
| MAXMATRIX_NODISCARD constexpr size_type | size () const |
| Returns the number of elements, N. | |
| T & | operator[] (size_type index) |
| Returns the element at index, unchecked. | |
| constexpr T const & | operator[] (size_type index) const |
| Returns the element at index, unchecked. | |
| MAXMATRIX_NODISCARD T * | data () |
| Returns the address of the first element, as a C array gives it. | |
| MAXMATRIX_NODISCARD constexpr T const * | data () const |
| Returns the address of the first element, as a C array gives it. | |
Public Attributes | |
| T | elements [N] |
| The elements. | |
A C array of N elements that knows its size.
A struct with a public member, as std::array is: so it is an aggregate, is made as a C array is, and can lie in PROGMEM as one. A table in PROGMEM is made with make_array(), which counts its values.
| T | The type of the elements. |
| N | The number of elements, at least 1. |
| using max_matrix::array< T, N >::size_type = size_t |
The type of a size and an index.
| using max_matrix::array< T, N >::value_type = T |
The type of an element.
|
inlineconstexpr |
Returns the address of the first element, as a C array gives it.
|
inline |
Returns the element at index, unchecked.
| [in] | index | The position, from 0; below N. |
|
inlineconstexpr |
Returns the element at index, unchecked.
| [in] | index | The position, from 0; below N. |
| T max_matrix::array< T, N >::elements[N] |
The elements.
Public, so that the array is an aggregate; use the index operator rather than this member.