cgv
is_standard_type.h
1 #pragma once
2 
3 #include <string>
4 #include <cgv/type/standard_types.h>
5 
6 namespace cgv {
7  namespace type {
8  namespace cond {
9 
11 template <typename T>
13 {
14  static const bool value = false;
15 };
16 
17 template <> struct is_standard_type<bool> { static const bool value = true; };
18 template <> struct is_standard_type<int8_type> { static const bool value = true; };
19 template <> struct is_standard_type<int16_type> { static const bool value = true; };
20 template <> struct is_standard_type<int32_type> { static const bool value = true; };
21 template <> struct is_standard_type<int64_type> { static const bool value = true; };
22 template <> struct is_standard_type<uint8_type> { static const bool value = true; };
23 template <> struct is_standard_type<uint16_type> { static const bool value = true; };
24 template <> struct is_standard_type<uint32_type> { static const bool value = true; };
25 template <> struct is_standard_type<uint64_type> { static const bool value = true; };
26 template <> struct is_standard_type<flt32_type> { static const bool value = true; };
27 template <> struct is_standard_type<flt64_type> { static const bool value = true; };
28 template <> struct is_standard_type<wchar_type> { static const bool value = true; };
29 template <> struct is_standard_type<std::wstring> { static const bool value = true; };
30 template <> struct is_standard_type<std::string> { static const bool value = true; };
31 
32  }
33  }
34 }
cgv::type::int32_type
int int32_type
this type provides an 32 bit signed integer type
Definition: standard_types.h:12
cgv::type::cond::is_standard_type
template condition returning, whether the given type is a standard type (excluding void and enum type...
Definition: is_standard_type.h:13
cgv::type::flt64_type
double flt64_type
this type provides a 64 bit floating point type
Definition: standard_types.h:26
cgv::type::uint8_type
unsigned char uint8_type
this type provides an 8 bit unsigned integer type
Definition: standard_types.h:16
cgv::type::uint16_type
unsigned short uint16_type
this type provides an 16 bit unsigned integer type
Definition: standard_types.h:18
cgv::type::int16_type
short int16_type
this type provides an 16 bit signed integer type
Definition: standard_types.h:10
cgv::type::int64_type
long long int64_type
this type provides an 64 bit signed integer type
Definition: standard_types.h:14
cgv::type::uint32_type
unsigned int uint32_type
this type provides an 32 bit unsigned integer type
Definition: standard_types.h:20
cgv::type::flt32_type
float flt32_type
this type provides a 32 bit floating point type
Definition: standard_types.h:24
cgv::type::wchar_type
wchar_t wchar_type
wide character type
Definition: standard_types.h:28
cgv
the cgv namespace
Definition: vr_calib.cxx:9
cgv::type::uint64_type
unsigned long long uint64_type
this type provides an 64 bit unsigned integer type
Definition: standard_types.h:22
cgv::type::int8_type
char int8_type
this type provides an 8 bit signed integer type
Definition: standard_types.h:8