4#include <cgv/type/info/type_id.h>
5#include <cgv/type/standard_types.h>
20 case TI_BOOL :
return(T)*
static_cast<const bool*
>(ptr);
40 case TI_BOOL : *
static_cast<bool*
>(ptr) = (v != 0);
break;
namespace for templates that provide type information
TypeId
ids for the different types and type constructs
@ TI_INT16
signed integer stored in 8 bits
@ TI_INT32
signed integer stored in 16 bits
@ TI_FLT32
floating point type stored in 16 bits
@ TI_UINT32
unsigned integer stored in 16 bits
@ TI_UINT8
signed integer stored in 64 bits
@ TI_INT64
signed integer stored in 32 bits
@ TI_UINT16
unsigned integer stored in 8 bits
@ TI_FLT64
floating point type stored in 32 bits
@ TI_UINT64
unsigned integer stored in 32 bits
namespace for compile time type information
double flt64_type
this type provides a 64 bit floating point type
signed char int8_type
this type provides an 8 bit signed integer type
int int32_type
this type provides an 32 bit signed integer type
short int16_type
this type provides an 16 bit signed integer type
unsigned short uint16_type
this type provides an 16 bit unsigned integer type
unsigned long long uint64_type
this type provides an 64 bit unsigned integer type
unsigned int uint32_type
this type provides an 32 bit unsigned integer type
long long int64_type
this type provides an 64 bit signed integer type
float flt32_type
this type provides a 32 bit floating point type
unsigned char uint8_type
this type provides an 8 bit unsigned integer type
this header is dependency free
access value whos type is given by a TypeId
static T get(const void *ptr, TypeId tid)
return stored value converted into type T
static bool set(void *ptr, TypeId tid, const T &v)
convert value from type T and store it