cgv
|
namespace for compile time type information More...
Namespaces | |
namespace | cond |
namespace for conditions that act on types | |
namespace | func |
namespace for functions that act on types | |
namespace | info |
namespace for templates that provide type information | |
Classes | |
struct | variant |
convenience template to access a value pointed to by a void pointer where the type of the value is given by a string as it results from cgv::type::info::type_name<T>::get_name(). More... | |
struct | variant< bool > |
struct | variant< const char * > |
struct | variant< std::string > |
struct | variant< std::wstring > |
Typedefs | |
typedef signed char | int8_type |
this type provides an 8 bit signed integer type | |
typedef short | int16_type |
this type provides an 16 bit signed integer type | |
typedef int | int32_type |
this type provides an 32 bit signed integer type | |
typedef long long | int64_type |
this type provides an 64 bit signed integer type | |
typedef unsigned char | uint8_type |
this type provides an 8 bit unsigned integer type | |
typedef unsigned short | uint16_type |
this type provides an 16 bit unsigned integer type | |
typedef unsigned int | uint32_type |
this type provides an 32 bit unsigned integer type | |
typedef unsigned long long | uint64_type |
this type provides an 64 bit unsigned integer type | |
typedef float | flt32_type |
this type provides a 32 bit floating point type | |
typedef double | flt64_type |
this type provides a 64 bit floating point type | |
typedef wchar_t | wchar_type |
wide character type | |
Enumerations | |
enum | DummyEnum { AAAAA , BBBBB } |
some enum to mark an integral parameter to be of enum type More... | |
Functions | |
void | assign_variant (const std::string &dst_value_type, void *dst_value_ptr, const std::string &src_value_type, const void *src_value_ptr) |
template<typename T > | |
void | set_variant (const T &value, const std::string &value_type, void *value_ptr) |
template<typename T > | |
void | get_variant (T &value, const std::string &value_type, const void *value_ptr) |
namespace for compile time type information
typedef float cgv::type::flt32_type |
this type provides a 32 bit floating point type
Definition at line 24 of file standard_types.h.
typedef double cgv::type::flt64_type |
this type provides a 64 bit floating point type
Definition at line 26 of file standard_types.h.
typedef short cgv::type::int16_type |
this type provides an 16 bit signed integer type
Definition at line 10 of file standard_types.h.
typedef int cgv::type::int32_type |
this type provides an 32 bit signed integer type
Definition at line 12 of file standard_types.h.
typedef long long cgv::type::int64_type |
this type provides an 64 bit signed integer type
Definition at line 14 of file standard_types.h.
typedef signed char cgv::type::int8_type |
this type provides an 8 bit signed integer type
Definition at line 8 of file standard_types.h.
typedef unsigned short cgv::type::uint16_type |
this type provides an 16 bit unsigned integer type
Definition at line 18 of file standard_types.h.
typedef unsigned int cgv::type::uint32_type |
this type provides an 32 bit unsigned integer type
Definition at line 20 of file standard_types.h.
typedef unsigned long long cgv::type::uint64_type |
this type provides an 64 bit unsigned integer type
Definition at line 22 of file standard_types.h.
typedef unsigned char cgv::type::uint8_type |
this type provides an 8 bit unsigned integer type
Definition at line 16 of file standard_types.h.
typedef wchar_t cgv::type::wchar_type |
wide character type
Definition at line 28 of file standard_types.h.
enum cgv::type::DummyEnum |
some enum to mark an integral parameter to be of enum type
Definition at line 31 of file standard_types.h.
CGV_API void cgv::type::assign_variant | ( | const std::string & | dst_value_type, |
void * | dst_value_ptr, | ||
const std::string & | src_value_type, | ||
const void * | src_value_ptr | ||
) |
Definition at line 9 of file variant.cxx.
void cgv::type::get_variant | ( | T & | value, |
const std::string & | value_type, | ||
const void * | value_ptr | ||
) |