|
|
using | primitive = util::value_type_t<T> |
| |
|
using | type = T |
| |
|
| static constexpr size_t | components () |
| |
|
static constexpr const DataFormatBase * | get () |
| |
|
static constexpr DataFormatId | id () |
| |
|
static constexpr T | lowest () |
| |
|
static constexpr double | lowestToDouble () |
| |
|
static constexpr T | max () |
| |
|
static constexpr double | maxToDouble () |
| |
|
static constexpr T | min () |
| |
|
static constexpr double | minToDouble () |
| |
| static constexpr NumericType | numericType () |
| |
| static constexpr size_t | precision () |
| |
| static constexpr size_t | rank () |
| |
| static constexpr size_t | sizeInBytes () |
| |
|
static constexpr auto | staticStr () |
| |
|
static constexpr std::string_view | str () |
| |
|
static constexpr std::optional< DataFormatId > | find (NumericType type, size_t components, size_t precision) |
| |
|
static constexpr std::optional< DataFormatId > | find (NumericType type, size_t components, size_t precision, size_t rank) |
| |
|
static constexpr std::optional< DataFormatId > | find (std::string_view name) |
| |
|
static constexpr const DataFormatBase * | get () |
| |
|
static constexpr const DataFormatBase * | get (DataFormatId id) |
| |
|
static constexpr const DataFormatBase * | get (NumericType type, size_t components, size_t precision) |
| |
|
static constexpr const DataFormatBase * | get (NumericType type, size_t components, size_t precision, size_t rank) |
| |
|
static constexpr const DataFormatBase * | get (std::string_view name) |
| |
|
template<typename T > |
| static constexpr DataFormatId | typeToId () noexcept |
| |
|
|
static constexpr size_t | comp = util::extent_v<T> |
| |
|
static constexpr size_t | compsize = sizeof(primitive) |
| |
|
static constexpr NumericType | numtype = util::getNumericType<primitive>() |
| |
|
static constexpr size_t | typesize = sizeof(type) |
| |
|
|
constexpr | DataFormatBase (DataFormatId type, size_t rank, size_t components, size_t size, double max, double min, double lowest, NumericType nt, std::string_view s) |
| |
| constexpr size_t | getComponents () const |
| |
| constexpr DataFormatId | getId () const |
| |
| constexpr double | getLowest () const |
| |
| constexpr double | getMax () const |
| |
| constexpr double | getMin () const |
| |
| constexpr NumericType | getNumericType () const |
| |
| constexpr size_t | getPrecision () const |
| |
| constexpr size_t | getRank () const |
| |
| constexpr size_t | getSizeInBytes () const |
| |
| constexpr std::string_view | getString () const |
| |
|
| DataFormatBase (const DataFormatBase &)=default |
| |
|
| DataFormatBase (DataFormatBase &&)=default |
| |
|
DataFormatBase & | operator= (const DataFormatBase &)=default |
| |
|
DataFormatBase & | operator= (DataFormatBase &&)=default |
| |
|
static constexpr const DataFormatBase * | getImpl (DataFormatId id) |
| |
|
static const DataFormatBase * | getInternal (DataFormatId id) |
| |
|
size_t | components_ |
| |
|
DataFormatId | formatId_ |
| |
|
std::string_view | formatStr_ |
| |
|
double | lowest_ |
| |
|
double | max_ |
| |
|
double | min_ |
| |
|
NumericType | numericType_ |
| |
|
size_t | rank_ |
| |
|
size_t | sizeInBytes_ |
| |
◆ components()
Returns the number of components in the format, 1 to 4.
◆ numericType()
Returns numeric type of the format
- See also
- NumericType
◆ precision()
Returns number of bits in each component in the format. can be 8, 16, 32 or 64.
◆ rank()
Returns the rank in the format, 0, 1 or 2.
◆ sizeInBytes()
Returns the size of the format in bytes. For all components.
The documentation for this class was generated from the following file:
- include/inviwo/core/util/formats.h