MRPT
2.0.1
|
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 69 of file TTypeName.h.
#include <mrpt/typemeta/TTypeName.h>
Static Public Member Functions | |
static constexpr auto | get () |
|
inlinestatic |
Definition at line 71 of file TTypeName.h.
Referenced by mrpt::comms::Topic::createSubscriber(), mrpt::typemeta::TTypeName< mrpt::math::CVectorFixed< T, N > >::get(), mrpt::typemeta::TTypeName< std::shared_ptr< T > >::get(), mrpt::typemeta::TTypeName< std::pair< T1, T2 > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CVectorDynamic< T > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CMatrixFixed< T, N, M > >::get(), mrpt::typemeta::TTypeName< mrpt::math::CMatrixDynamic< 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 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |