Main MRPT website > C++ reference for MRPT 1.5.7
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

#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.

Referenced by mrpt::opengl::COctoMapVoxels::render_dl().

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

Definition at line 64 of file TTypeName.h.

Referenced by mrpt::opengl::CPolyhedron::getIntersection(), mrpt::opengl::CPointCloudColoured::PLY_export_get_face_count(), mrpt::kinematics::CKinematicChain::setConfiguration(), and mrpt::math::TTwist3D::size().

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

Definition at line 68 of file TTypeName.h.

#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 GLcharARB ** string
Definition: glew.h:3293

Definition at line 72 of file TTypeName.h.

Referenced by mrpt::obs::CObservation2DRangeScan::setSensorPose(), and mrpt::obs::CObservationVelodyneScan::setSensorPose().




Page generated by Doxygen 1.8.11 for MRPT 1.5.7 Git: 2190203 Tue May 15 02:01:15 2018 +0200 at mié may 16 12:40:16 CEST 2018