MRPT
1.9.9
|
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 | |
static constexpr auto | get () |
|
inlinestatic |
Definition at line 67 of file TTypeName.h.
Referenced by mrpt::comms::Topic::createSubscriber(), 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::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.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020 |