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;
complete implementation of method actions that only call one method when entering a node
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
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