types.hpp File Reference

Provides facilities for basic type introspection. More...

Go to the source code of this file.

Macros

#define DEFINE_TYPE(X)   template<>const char* get_type_name<X>(){return #X;}
 
#define DEFINE_TYPE_NAME(X, N)   template<>const char* get_type_name<X>(){return N;}
 

Functions

template<typename T >
const char * get_type_name ()
 
 DEFINE_TYPE (char)
 
 DEFINE_TYPE (short int)
 
 DEFINE_TYPE (unsigned short int)
 
 DEFINE_TYPE (int)
 
 DEFINE_TYPE (unsigned int)
 
 DEFINE_TYPE (long int)
 
 DEFINE_TYPE (unsigned long int)
 
 DEFINE_TYPE (long long int)
 
 DEFINE_TYPE (unsigned long long int)
 
 DEFINE_TYPE (bool)
 
 DEFINE_TYPE (float)
 
 DEFINE_TYPE (double)
 
 DEFINE_TYPE (wchar_t)
 

Detailed Description

Provides facilities for basic type introspection.

This file includes a a set of basic facilities for registering names for non-POD C/C++ types to be reflected in the XML output of the interospection stage.