cgv
Loading...
Searching...
No Matches
cgv::type Namespace Reference

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)
 

Detailed Description

namespace for compile time type information

Typedef Documentation

◆ flt32_type

typedef float cgv::type::flt32_type

this type provides a 32 bit floating point type

Definition at line 24 of file standard_types.h.

◆ flt64_type

typedef double cgv::type::flt64_type

this type provides a 64 bit floating point type

Definition at line 26 of file standard_types.h.

◆ int16_type

typedef short cgv::type::int16_type

this type provides an 16 bit signed integer type

Definition at line 10 of file standard_types.h.

◆ int32_type

typedef int cgv::type::int32_type

this type provides an 32 bit signed integer type

Definition at line 12 of file standard_types.h.

◆ int64_type

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.

◆ int8_type

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.

◆ uint16_type

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.

◆ uint32_type

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.

◆ uint64_type

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.

◆ uint8_type

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.

◆ wchar_type

typedef wchar_t cgv::type::wchar_type

wide character type

Definition at line 28 of file standard_types.h.

Enumeration Type Documentation

◆ DummyEnum

some enum to mark an integral parameter to be of enum type

Definition at line 31 of file standard_types.h.

Function Documentation

◆ assign_variant()

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.

◆ get_variant()

template<typename T >
void cgv::type::get_variant ( T &  value,
const std::string &  value_type,
const void *  value_ptr 
)

Definition at line 263 of file variant.h.

◆ set_variant()

template<typename T >
void cgv::type::set_variant ( const T &  value,
const std::string &  value_type,
void *  value_ptr 
)

Definition at line 257 of file variant.h.