Syntalos::SignalBlockF32
Syntalos::SignalBlockF32
A block of 32-bit floating-point timestamped signal data.
#include <datatypes.h>
Inherits from Syntalos::BaseDataType
Public Functions
| Name | |
|---|---|
| SignalBlockF32(uint sampleCount =60, uint channelCount =1) | |
| SignalBlockF32(const std::vector< float > & floatVec, uint timestamp) | |
| size_t | length() const |
| size_t | rows() const |
| size_t | cols() const |
| virtual bool | toBytes(ByteVector & output) const override Serialize the data to a byte array. |
| SignalBlockF32 | fromMemory(const void * memory, size_t size) |
Public Attributes
| Name | |
|---|---|
| VectorXu64 | timestamps |
| MatrixXf | data |
Additional inherited members
Public Types inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| enum | TypeId { Unknown, ControlCommand, TableRow, Frame, LineCommand, LineReading, SignalBlockI32, SignalBlockF32, SignalBlockU16, Last} The TypeId enum. |
Public Functions inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| virtual | ~BaseDataType() =default |
| virtual TypeId | typeId() const =0 |
| virtual ssize_t | memorySize() const Calculate the size of the data in memory. |
| virtual bool | writeToMemory(void * memory, ssize_t size =-1) const Write the data to a memory block. |
| bool | typeIdIsValid(int value) |
| std::string | typeIdToString(int value) |
| std::string | typeIdToString(TypeId value) |
| TypeId | typeIdFromString(const std::string & str) |
Protected Functions inherited from Syntalos::BaseDataType
| Name | |
|---|---|
| BaseDataType() =default | |
| BaseDataType(const BaseDataType & ) =default | |
| BaseDataType & | operator=(const BaseDataType & ) =default |
| BaseDataType(BaseDataType && ) =default | |
| BaseDataType & | operator=(BaseDataType && ) =default |
Public Functions Documentation
function SignalBlockF32
inline explicit SignalBlockF32(
uint sampleCount =60,
uint channelCount =1
)function SignalBlockF32
inline explicit SignalBlockF32(
const std::vector< float > & floatVec,
uint timestamp
)function length
inline size_t length() constfunction rows
inline size_t rows() constfunction cols
inline size_t cols() constfunction toBytes
inline virtual bool toBytes(
ByteVector & output
) const overrideSerialize the data to a byte array.
Reimplements: Syntalos::BaseDataType::toBytes
Serialize the data to a byte array for local transmission.
function fromMemory
static inline SignalBlockF32 fromMemory(
const void * memory,
size_t size
)Public Attributes Documentation
variable timestamps
VectorXu64 timestamps;variable data
MatrixXf data;Updated on 2026-05-15 at 01:05:43 +0000