![]() |
flux sdk
v01.02.02-3-g292b3a7
Embedded C++ SDK
|
A templated class to define an array class of a specific type. More...
#include <flxCoreTypes.h>
Public Member Functions | |
| flxDataArrayType () | |
| ~flxDataArrayType () | |
| flxDataType_t | type (void) |
| Return the data type of the array. More... | |
| void | set (T *data, uint16_t d0, bool no_copy=false) |
| Set the array data and pass in dimensions for the array. More... | |
| void | set (T *data, uint16_t d0, uint16_t d1, bool no_copy=false) |
| Set the array data and pass in dimensions for the array. More... | |
| void | set (T *data, uint16_t d0, uint16_t d1, uint16_t d2, bool no_copy=false) |
| Set the array data and pass in dimensions for the array. More... | |
| T * | get () |
| Return a pointer to the array data. More... | |
Public Member Functions inherited from flxDataArray | |
| flxDataArray () | |
| virtual | ~flxDataArray () |
| virtual flxDataType_t | type ()=0 |
| uint8_t | n_dimensions () |
| Return the number of dimensions in the array. More... | |
| uint16_t * | dimensions () |
| Return a pointer to the array's dimensions array . More... | |
| size_t | size (void) |
| Return the total number of elements in the array. More... | |
Protected Member Functions | |
| virtual void | reset () |
| virtual void | freeAlloc (void) |
| virtual bool | setDataPtr (T *data, size_t length, bool no_copy) |
Protected Member Functions inherited from flxDataArray | |
| void | setDimensions (uint16_t d0) |
| void | setDimensions (uint16_t d0, uint16_t d1) |
| void | setDimensions (uint16_t d0, uint16_t d1, uint16_t d2) |
| virtual void | reset () |
Protected Attributes | |
| bool | _bAlloc |
Protected Attributes inherited from flxDataArray | |
| uint8_t | _n_dims |
| uint16_t | _dimensions [kMaxArrayDims] |
Additional Inherited Members | |
Static Protected Attributes inherited from flxDataArray | |
| static constexpr uint16_t | kMaxArrayDims = 3 |
A templated class to define an array class of a specific type.
|
inline |
|
inline |
|
inlineprotectedvirtual |
|
inline |
Return a pointer to the array data.
|
inlineprotectedvirtual |
Reimplemented from flxDataArray.
|
inline |
Set the array data and pass in dimensions for the array.
| data | The array data pointer |
| d0 | The first dimension of the array |
| no_copy | If set, the data is not copied. |
|
inline |
Set the array data and pass in dimensions for the array.
| data | The array data pointer |
| d0 | The first dimension of the array |
| d1 | The second dimension of the array |
| no_copy | If set, the data is not copied. |
|
inline |
Set the array data and pass in dimensions for the array.
| data | The array data pointer |
| d0 | The first dimension of the array |
| d1 | The second dimension of the array |
| d2 | The third dimension of the array |
| no_copy | If set, the data is not copied. |
|
inlineprotectedvirtual |
|
inlinevirtual |
|
protected |