61 [[nodiscard]]
size_t nDigits()
const;
146 size_t _nFractionalDigits;
Class describing the actual payload data format of a register in an abstract manner.
size_t nFractionalDigits() const
Approximate maximum number of digits after decimal dot (of base 10) needed to represent the value (ex...
FundamentalType fundamentalType() const
Get the fundamental data type.
bool isIntegral() const
Return whether the data is integral or not (e.g.
DataType transportLayerDataType() const
Get the data type on the transport layer.
DataDescriptor()
Default constructor sets fundamental type to "undefined".
DataType minimumDataType() const
Get the minimum data type required to represent the described data type in the host CPU.
void setRawDataType(const DataType &d)
Set the raw data type.
bool operator!=(const DataDescriptor &other) const
bool operator==(const DataDescriptor &other) const
size_t nDigits() const
Return the approximate maximum number of digits (of base 10) needed to represent the value (including...
DataType rawDataType() const
Get the raw data type.
bool isSigned() const
Return whether the data is signed or not.
FundamentalType
Enum for the fundamental data types.
A class to describe which of the supported data types is used.
@ none
The data type/concept does not exist, e.g. there is no raw transfer (do not confuse with Void)
std::ostream & operator<<(std::ostream &stream, const DataDescriptor::FundamentalType &fundamentalType)