MRPT logo

mrpt::utils::TTypeName< T > Struct Template Reference

A template to obtain the type of its argument as a string at compile time. More...

#include <mrpt/utils/CSerializable.h>

List of all members.

Static Public Member Functions

static std::string get ()


Detailed Description

template<typename T>
struct mrpt::utils::TTypeName< T >

A template to obtain the type of its argument as a string at compile time.

It works with all classes derived from CSerializable, plus many specializations for the plain data types (bool, double, uint8_t, etc...) For example:

     cout << TTypeName<double>::get() << endl;                          // "double"
        cout << TTypeName<CPose2D>::get() << endl;                         // "CPose2D"
        cout << TTypeName<mrpt::slam::COccupancyGridMap2D>::get() << endl; // "COccupancyGridMap2D"

Definition at line 228 of file CSerializable.h.


Member Function Documentation

template<typename T >
static std::string mrpt::utils::TTypeName< T >::get (  )  [inline, static]




Page generated by Doxygen 1.5.7.1 for MRPT 0.7.1 SVN: at Mon Aug 17 22:58:25 EDT 2009