4 #include <cgv/type/standard_types.h>
5 #include <cgv/type/info/type_id.h>
12 template <TypeId type_
id>
15 static void* cast(
void* ptr) {
return ptr; }
16 static const void* cast(
const void* ptr) {
return ptr; }
22 static bool* cast(
void* ptr) {
return static_cast<bool*
>(ptr); }
23 static const bool* cast(
const void* ptr) {
return static_cast<const bool*
>(ptr); }
30 static const int8_type* cast(
const void* ptr) {
return static_cast<const int8_type*
>(ptr); }
89 static std::string* cast(
void* ptr) {
return static_cast<std::string*
>(ptr); }
90 static const std::string* cast(
const void* ptr) {
return static_cast<const std::string*
>(ptr); }
103 static std::wstring* cast(
void* ptr) {
return static_cast<std::wstring*
>(ptr); }
104 static const std::wstring* cast(
const void* ptr) {
return static_cast<const std::wstring*
>(ptr); }
int int32_type
this type provides an 32 bit signed integer type
Definition: standard_types.h:12
@ TI_WCHAR
floating point type stored in 64 bits
Definition: type_id.h:30
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
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
@ TI_STRING
wide character type
Definition: type_id.h:31
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
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
@ TI_WSTRING
string type
Definition: type_id.h:32
unsigned int uint32_type
this type provides an 32 bit unsigned integer type
Definition: standard_types.h:20
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
wchar_t wchar_type
wide character type
Definition: standard_types.h:28
the cgv namespace
Definition: vr_calib.cxx:9
template to cast a pointer into a type known at compile time and specified as TypeId
Definition: type_ptr.h:14
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