HDK
|
#include <SYS/SYS_Types.h>
#include <SYS/SYS_TypeTraits.h>
#include <SYS/SYS_Inline.h>
#include "UT_Assert.h"
Go to the source code of this file.
Macros | |
#define | __UT_Storage__ |
#define | DECLARE_CONVERT_STORAGE_ROUND(T, F) |
Typedefs | |
template<typename T0 , typename T1 > | |
using | UT_StorageBetter_t = typename UT_StorageBetter< T0, T1 >::type |
template<typename T0 , typename T1 > | |
using | UT_StorageAtLeast32Bit_t = typename UT_StorageAtLeast32Bit< T0, T1 >::type |
template<typename T > | |
using | UT_StorageMathFloat_t = typename UT_StorageNum< T >::MathFloat |
Enumerations | |
enum | UT_Storage { UT_Storage::INVALID = -1, UT_Storage::INT8, UT_Storage::UINT8, UT_Storage::INT16, UT_Storage::INT32, UT_Storage::INT64, UT_Storage::REAL16, UT_Storage::REAL32, UT_Storage::REAL64 } |
Functions | |
SYS_FORCE_INLINE constexpr bool | UTisIntStorage (UT_Storage storage) |
Returns true iff the given storage type represents an integer. More... | |
SYS_FORCE_INLINE constexpr bool | UTisFloatStorage (UT_Storage storage) |
Returns true iff the given storage type represents a floating-point number. More... | |
SYS_FORCE_INLINE constexpr int | UTstorageSize (UT_Storage storage) |
Returns the number of bytes in the given storage type. More... | |
template<typename TO , typename FROM > | |
SYS_FORCE_INLINE TO | UTconvertStorage (FROM from) |
#define __UT_Storage__ |
Definition at line 14 of file UT_Storage.h.
#define DECLARE_CONVERT_STORAGE_ROUND | ( | T, | |
F | |||
) |
Definition at line 316 of file UT_Storage.h.
using UT_StorageAtLeast32Bit_t = typename UT_StorageAtLeast32Bit<T0,T1>::type |
Definition at line 265 of file UT_Storage.h.
using UT_StorageBetter_t = typename UT_StorageBetter<T0,T1>::type |
Definition at line 256 of file UT_Storage.h.
using UT_StorageMathFloat_t = typename UT_StorageNum<T>::MathFloat |
Definition at line 176 of file UT_Storage.h.
|
strong |
An enum representing numeric data storage types.
NOTE: The order must be the conversion precedence order. For example, int8(0)+int16(0) will be an int16, and int64(0)+fpreal32(0) will be an fpreal32. This enables UT_StorageBetter.
Enumerator | |
---|---|
INVALID | |
INT8 | |
UINT8 | |
INT16 | |
INT32 | |
INT64 | |
REAL16 | |
REAL32 | |
REAL64 |
Definition at line 28 of file UT_Storage.h.
SYS_FORCE_INLINE TO UTconvertStorage | ( | FROM | from | ) |
Definition at line 313 of file UT_Storage.h.
SYS_FORCE_INLINE constexpr bool UTisFloatStorage | ( | UT_Storage | storage | ) |
Returns true iff the given storage type represents a floating-point number.
Definition at line 50 of file UT_Storage.h.
SYS_FORCE_INLINE constexpr bool UTisIntStorage | ( | UT_Storage | storage | ) |
Returns true iff the given storage type represents an integer.
Definition at line 43 of file UT_Storage.h.
SYS_FORCE_INLINE constexpr int UTstorageSize | ( | UT_Storage | storage | ) |
Returns the number of bytes in the given storage type.
Definition at line 57 of file UT_Storage.h.