|
static constexpr DataFormatId | id () |
|
static const DataFormat< T > * | get () |
|
static constexpr size_t | sizeInBytes () |
|
static constexpr size_t | components () |
|
static constexpr size_t | precision () |
|
static constexpr NumericType | numericType () |
|
static constexpr T | max () |
|
static constexpr T | min () |
|
static constexpr T | lowest () |
|
static constexpr double | maxToDouble () |
|
static constexpr double | minToDouble () |
|
static constexpr double | lowestToDouble () |
|
static constexpr std::string_view | str () |
|
static constexpr auto | staticStr () |
|
static const DataFormatBase * | get () |
|
static const DataFormatBase * | get (DataFormatId id) |
|
static const DataFormatBase * | get (std::string_view name) |
|
static const DataFormatBase * | get (NumericType type, size_t components, size_t precision) |
|
template<typename T > |
static constexpr DataFormatId | typeToId () noexcept |
|
|
static const size_t | comp = util::extent<T>::value |
|
static const size_t | typesize = sizeof(type) |
|
static const size_t | compsize = sizeof(primitive) |
|
static const NumericType | numtype = util::getNumericType<primitive>() |
|
|
size_t | getSizeInBytes () const |
|
size_t | getSize () const |
|
size_t | getComponents () const |
|
size_t | getPrecision () const |
|
NumericType | getNumericType () const |
|
double | getMax () const |
|
double | getMin () const |
|
double | getLowest () const |
|
std::string_view | getString () const |
|
DataFormatId | getId () const |
|
| DataFormatBase (DataFormatId type, size_t components, size_t size, double max, double min, double lowest, NumericType nt, std::string_view s) |
|
| DataFormatBase (const DataFormatBase &)=delete |
|
| DataFormatBase (DataFormatBase &&)=delete |
|
DataFormatBase & | operator= (const DataFormatBase &)=delete |
|
DataFormatBase & | operator= (DataFormatBase &&)=delete |
|
DataFormatId | formatId_ |
|
size_t | components_ |
|
size_t | sizeInBytes_ |
|
NumericType | numericType_ |
|
double | max_ |
|
double | min_ |
|
double | lowest_ |
|
std::string_view | formatStr_ |
|
◆ components()
Returns the number of components in the format, 1 to 4.
◆ precision()
Returns number of bits in each component in the format. can be 8, 16, 32 or 64.
◆ sizeInBytes()
Returns the size of the format in bytes. For all components.
The documentation for this class was generated from the following file: