Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces
TTypeName_stl.h File Reference
#include <mrpt/typemeta/TTypeName.h>
#include <mrpt/typemeta/num_to_string.h>
#include <mrpt/typemeta/static_string.h>
#include <list>
#include <vector>
#include <deque>
#include <set>
#include <map>
#include <array>
Include dependency graph for TTypeName_stl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  mrpt::typemeta::TTypeName< std::pair< T1, T2 > >
 

Namespaces

 mrpt
 This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
 
 mrpt::typemeta
 

Macros

Conversion of type to string at compile time
#define MRPT_DECLARE_TTYPENAME_CONTAINER(_CONTAINER)
 
#define MRPT_DECLARE_TTYPENAME_CONTAINER_FIX_SIZE(_CONTAINER)
 
#define MRPT_DECLARE_TTYPENAME_CONTAINER_ASSOC(_CONTAINER)
 

Macro Definition Documentation

◆ MRPT_DECLARE_TTYPENAME_CONTAINER

#define MRPT_DECLARE_TTYPENAME_CONTAINER (   _CONTAINER)
Value:
template <typename V> \
struct TTypeName<_CONTAINER<V>> \
{ \
constexpr static auto get() \
{ \
return literal(#_CONTAINER) + literal("<") + TTypeName<V>::get() + \
literal(">"); \
} \
};
constexpr auto literal(const char(&lit)[N_PLUS_1]) -> string_literal< N_PLUS_1 - 1 >
Definition: static_string.h:43

Definition at line 32 of file TTypeName_stl.h.

◆ MRPT_DECLARE_TTYPENAME_CONTAINER_ASSOC

#define MRPT_DECLARE_TTYPENAME_CONTAINER_ASSOC (   _CONTAINER)
Value:
template <typename K, typename V> \
struct TTypeName<_CONTAINER<K, V>> \
{ \
constexpr static auto get() \
{ \
return literal(#_CONTAINER) + literal("<") + TTypeName<K>::get() + \
literal(",") + TTypeName<V>::get() + literal(">"); \
} \
};
constexpr auto literal(const char(&lit)[N_PLUS_1]) -> string_literal< N_PLUS_1 - 1 >
Definition: static_string.h:43

Definition at line 63 of file TTypeName_stl.h.

◆ MRPT_DECLARE_TTYPENAME_CONTAINER_FIX_SIZE

#define MRPT_DECLARE_TTYPENAME_CONTAINER_FIX_SIZE (   _CONTAINER)
Value:
template <typename V, std::size_t N> \
struct TTypeName<_CONTAINER<V, N>> \
{ \
constexpr static auto get() \
{ \
return literal(#_CONTAINER) + literal("<") + TTypeName<V>::get() + \
literal(",") + literal(num_to_string<N>::value) + \
literal(">"); \
} \
};
constexpr auto literal(const char(&lit)[N_PLUS_1]) -> string_literal< N_PLUS_1 - 1 >
Definition: static_string.h:43
GLsizei const GLfloat * value
Definition: glext.h:4117

Definition at line 49 of file TTypeName_stl.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019