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:
Users can extend this for custom structs/classes with the macro DECLARE_CUSTOM_TTYPENAME:
The following types are NOT ALLOWED since they have platform-dependant sizes:
Definition at line 47 of file TTypeName.h.
#include <mrpt/utils/TTypeName.h>
Static Public Member Functions | |
static std::string | get () |
|
inlinestatic |
Definition at line 49 of file TTypeName.h.
Referenced by mrpt::utils::TTypeName< mrpt::graphs::CNetworkOfPoses< CPOSE, MAPS_IMPLEMENTATION, NODE_ANNOTATIONS, EDGE_ANNOTATIONS > >::get(), mrpt::utils::operator<<(), mrpt::graphs::detail::graph_ops< graph_t >::read_graph_of_poses_from_binary_file(), and mrpt::graphs::detail::graph_ops< graph_t >::save_graph_of_poses_to_binary_file().
Page generated by Doxygen 1.9.5 for MRPT 1.4.0 SVN: at Sun Nov 27 02:56:59 UTC 2022 |