Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces
TTypeName.h File Reference
#include <cstdint>
#include <string>

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)
 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)
Value:
namespace mrpt \
{ \
namespace utils \
{ \
MRPT_DECLARE_TTYPENAME(_TYPE) \
} \
}
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.

Identical to MRPT_DECLARE_TTYPENAME but intended for user code.

MUST be placed at the GLOBAL namespace.

Definition at line 63 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:4101

Definition at line 72 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:4101

Definition at line 79 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:4101

Definition at line 86 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:4101

Definition at line 93 of file TTypeName.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019