Main MRPT website > C++ reference for MRPT 1.5.6
Classes | Namespaces
TTypeName.h File Reference
#include <mrpt/utils/mrpt_stdint.h>
#include <string>
Include dependency graph for TTypeName.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mrpt::utils::TTypeName< T >
 A template to obtain the type of its argument as a string at compile time. More...
 

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::utils
 Classes for serialization, sockets, ini-file manipulation, streams, list of properties-values, timewatch, extensions to STL.
 

Macros

Conversion of type to string at compile time
#define DECLARE_CUSTOM_TTYPENAME(_TYPE)   namespace mrpt { namespace utils { MRPT_DECLARE_TTYPENAME(_TYPE) } }
 Identical to MRPT_DECLARE_TTYPENAME but intended for user code. More...
 
#define MRPT_DECLARE_TTYPENAME(_TYPE)
 
#define MRPT_DECLARE_TTYPENAME_NAMESPACE(_TYPE, __NS)
 
#define MRPT_DECLARE_TTYPENAME_PTR(_TYPE)
 
#define MRPT_DECLARE_TTYPENAME_PTR_NAMESPACE(_TYPE, __NS)
 

Macro Definition Documentation

◆ DECLARE_CUSTOM_TTYPENAME

#define DECLARE_CUSTOM_TTYPENAME (   _TYPE)    namespace mrpt { namespace utils { MRPT_DECLARE_TTYPENAME(_TYPE) } }

Identical to MRPT_DECLARE_TTYPENAME but intended for user code.

MUST be placed at the GLOBAL namespace.

Definition at line 57 of file TTypeName.h.

◆ MRPT_DECLARE_TTYPENAME

#define MRPT_DECLARE_TTYPENAME (   _TYPE)
Value:
template<> struct TTypeName <_TYPE > { \
static std::string get() { return std::string(#_TYPE); } };
GLsizei const GLchar ** string
Definition: glext.h:3919

Definition at line 60 of file TTypeName.h.

◆ MRPT_DECLARE_TTYPENAME_NAMESPACE

#define MRPT_DECLARE_TTYPENAME_NAMESPACE (   _TYPE,
  __NS 
)
Value:
template<> struct TTypeName <__NS :: _TYPE > { \
static std::string get() { return std::string(#_TYPE); } };
GLsizei const GLchar ** string
Definition: glext.h:3919

Definition at line 64 of file TTypeName.h.

◆ MRPT_DECLARE_TTYPENAME_PTR

#define MRPT_DECLARE_TTYPENAME_PTR (   _TYPE)
Value:
template<> struct TTypeName <_TYPE##Ptr> { \
static std::string get() { return TTypeName<_TYPE>::get(); } };
GLsizei const GLchar ** string
Definition: glext.h:3919

Definition at line 68 of file TTypeName.h.

◆ MRPT_DECLARE_TTYPENAME_PTR_NAMESPACE

#define MRPT_DECLARE_TTYPENAME_PTR_NAMESPACE (   _TYPE,
  __NS 
)
Value:
template<> struct TTypeName <__NS :: _TYPE##Ptr> { \
static std::string get() { return TTypeName<__NS :: _TYPE>::get(); } };
GLsizei const GLchar ** string
Definition: glext.h:3919

Definition at line 72 of file TTypeName.h.




Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019