A template to obtain the type of its argument as a string at compile time.
It works with all classes derived from CObject, 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:
or alternatively, to avoid adding out-of-class macros:
The following types are NOT ALLOWED since they have platform-dependant sizes:
Definition at line 65 of file TTypeName.h.
#include <mrpt/typemeta/TTypeName.h>
Static Public Member Functions | |
constexpr static auto | get () |
|
inlinestaticconstexpr |
Definition at line 67 of file TTypeName.h.
Referenced by mrpt::typemeta::TTypeName< std::shared_ptr< T > >::get(), mrpt::typemeta::TTypeName< std::pair< T1, T2 > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CArrayNumeric< T, N > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CMatrixFixedNumeric< T, N, M > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CMatrixTemplateNumeric< T > >::get(), mrpt::serialization::operator<<(), mrpt::graphs::detail::graph_ops< graph_t >::read_graph_of_poses_from_binary_file(), mrpt::graphs::detail::graph_ops< graph_t >::save_graph_of_poses_to_binary_file(), and TEST().
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST |