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;
int int32_type
this type provides an 32 bit signed integer type
Definition: standard_types.h:12
double flt64_type
this type provides a 64 bit floating point type
Definition: standard_types.h:26
@ TI_INT32
signed integer stored in 16 bits
Definition: type_id.h:21
TypeId
ids for the different types and type constructs
Definition: type_id.h:12
unsigned char uint8_type
this type provides an 8 bit unsigned integer type
Definition: standard_types.h:16
@ TI_UINT64
unsigned integer stored in 32 bits
Definition: type_id.h:26
unsigned short uint16_type
this type provides an 16 bit unsigned integer type
Definition: standard_types.h:18
short int16_type
this type provides an 16 bit signed integer type
Definition: standard_types.h:10
@ TI_FLT64
floating point type stored in 32 bits
Definition: type_id.h:29
@ TI_INT16
signed integer stored in 8 bits
Definition: type_id.h:20
@ TI_UINT32
unsigned integer stored in 16 bits
Definition: type_id.h:25
@ TI_UINT16
unsigned integer stored in 8 bits
Definition: type_id.h:24
@ TI_INT8
boolean
Definition: type_id.h:19
@ TI_FLT32
floating point type stored in 16 bits
Definition: type_id.h:28
static bool set(void *ptr, TypeId tid, const T &v)
convert value from type T and store it
Definition: type_access.h:37
long long int64_type
this type provides an 64 bit signed integer type
Definition: standard_types.h:14
@ TI_INT64
signed integer stored in 32 bits
Definition: type_id.h:22
unsigned int uint32_type
this type provides an 32 bit unsigned integer type
Definition: standard_types.h:20
access value whos type is given by a TypeId
Definition: type_access.h:14
float flt32_type
this type provides a 32 bit floating point type
Definition: standard_types.h:24
@ TI_BOOL
void
Definition: type_id.h:18
@ TI_UINT8
signed integer stored in 64 bits
Definition: type_id.h:23
the cgv namespace
Definition: vr_calib.cxx:9
static T get(const void *ptr, TypeId tid)
return stored value converted into type T
Definition: type_access.h:16
unsigned long long uint64_type
this type provides an 64 bit unsigned integer type
Definition: standard_types.h:22
char int8_type
this type provides an 8 bit signed integer type
Definition: standard_types.h:8