This class is used to handle a row of bytes with a given length.
More...
#include <LedController_byterow.hpp>
|
byte | _data [SIZE] |
| The internal array where the actual data is. More...
|
|
template<size_t SIZE>
class sakurajin::ByteRow< SIZE >
This class is used to handle a row of bytes with a given length.
- Template Parameters
-
SIZE | The length of the row. |
Definition at line 27 of file LedController_byterow.hpp.
◆ ByteRow() [1/2]
Construct a new Byte Row object from an array.
- Parameters
-
newdata | The array which should be used to initilize the row. |
Definition at line 51 of file LedController_byterow.hpp.
◆ ByteRow() [2/2]
◆ ~ByteRow()
◆ at()
Access the class just like the underlying array.
- Parameters
-
index | he index that is requested. |
- Returns
- byte the data at the requested index.
Definition at line 128 of file LedController_byterow.hpp.
◆ operator!=()
checks if two byteRows do not have identical data
- Parameters
-
- Returns
- true the data is not equal
-
false the data is equal
Definition at line 288 of file LedController_byterow.hpp.
◆ operator&()
◆ operator++()
◆ operator--()
◆ operator<<()
Moves all data of the ByteRow to the left by a given distance.
- Note
- each index is handled on its own and no data is shifted across
- Parameters
-
distance | the distance the data should be moved |
- Returns
- ByteRow the resulting ByteRow
Definition at line 187 of file LedController_byterow.hpp.
◆ operator=()
Assign an array to this object.
- Parameters
-
newdata | The data that will be assigned to this obejct |
- Returns
- ByteRow& The modified object
Definition at line 146 of file LedController_byterow.hpp.
◆ operator==()
checks if two byteRows have identical data
- Parameters
-
- Returns
- true the data is equal
-
false the data is not equal
Definition at line 265 of file LedController_byterow.hpp.
◆ operator>>()
Moves all data of the ByteRow to the right by a given distance.
- Note
- each index is handled on its own and no data is shifted across
- Parameters
-
distance | the distance the data should be moved |
- Returns
- ByteRow the resulting ByteRow
Definition at line 208 of file LedController_byterow.hpp.
◆ operator[]() [1/2]
Access the class just like the underlying array.
- Parameters
-
index | the index that is requested. |
- Returns
- const byte& the data at the requested index.
Definition at line 110 of file LedController_byterow.hpp.
◆ operator[]() [2/2]
Access the class just like the underlying array.
- Parameters
-
index | the index that is requested. |
- Returns
- byte& the data at the requested index.
Definition at line 92 of file LedController_byterow.hpp.
◆ _data
The documentation for this class was generated from the following file: