34#include <NDEVR/BaseValues.h>
35#include <NDEVR/BufferBase.h>
77 template<
class t_type>
119 static_assert(
sizeof(TypeInfo) == 16,
"Bad TypeInfo Size");
124 template<class t_type, bool is_buffer = ObjectInfo<t_type>::Buffer>
145 template<
class t_type>
The core Color class in the NDEVR API.
Stores information about a type, relevant for certain templated functions.
bool is_unsigned
Whether the type represents an unsigned numeric value.
uint02 vector_size
The number of dimensions or components in the type (e.g. 3 for a 3D vector).
bool operator==(const TypeInfo &type) const
Checks whether two TypeInfo instances are equal by comparing all fields.
bool operator!=(const TypeInfo &type) const
Checks whether two TypeInfo instances are not equal.
bool isSame(const t_type &object)
Checks whether the given object has the same TypeInfo as this instance.
bool is_string
Whether the type represents a string.
bool is_buffer
Whether the type represents a buffer or container.
uint02 byte_size
The size in bytes of a single element within the type.
uint04 total_size
The total size of the type in bytes.
bool is_color
Whether the type represents a color.
bool is_number
Whether the type represents a numeric value.
constexpr TypeInfo()
Constructs a default TypeInfo with all sizes set to zero and all type flags set to false.
bool is_boolean
Whether the type represents a boolean.
bool is_float
Whether the type represents a floating-point numeric value.
The primary namespace for the NDEVR SDK.
@ type
The type identifier string for this model node.
uint16_t uint02
-Defines an alias representing a 2 byte, unsigned integer -Can represent exact integer values 0 throu...
constexpr std::enable_if<!ObjectInfo< t_type >::Buffer, TypeInfo >::type GetTypeInfo()
Constructs a TypeInfo for a non-buffer type at compile time using ObjectInfo traits.
uint32_t uint04
-Defines an alias representing a 4 byte, unsigned integer -Can represent exact integer values 0 throu...
constexpr t_to cast(const Angle< t_from > &value)
Casts an Angle from one backing type to another.
Information about the object.