23#ifndef VCL_TYPES_BASE_H
24#define VCL_TYPES_BASE_H
36using ushort = uint16_t;
48constexpr uint
UINT_NULL = std::numeric_limits<uint>::max();
87 case PrimitiveType::CHAR:
return sizeof(char);
88 case PrimitiveType::UCHAR:
return sizeof(
unsigned char);
89 case PrimitiveType::SHORT:
return sizeof(int16_t);
90 case PrimitiveType::USHORT:
return sizeof(uint16_t);
91 case PrimitiveType::INT:
return sizeof(int32_t);
92 case PrimitiveType::UINT:
return sizeof(uint32_t);
93 case PrimitiveType::FLOAT:
return sizeof(float);
94 case PrimitiveType::DOUBLE:
return sizeof(double);
106constexpr typename std::underlying_type<E>::type toUnderlying(E e)
noexcept
108 return static_cast<typename std::underlying_type<E>::type
>(e);
127 T* operator->() {
return std::addressof(mValue); }
A simple utility class to represent a pointer with a value.
Definition base.h:121
MatrixStorageType
A simple type that enumerates the main storage types for matrices (row or column major).
Definition base.h:76
PrimitiveType
A simple type that enumerates the main primitive types.
Definition base.h:58
constexpr uint UINT_NULL
The UINT_NULL value represent a null value of uint that is the maximum value that can be represented ...
Definition base.h:48