MRPT
2.0.1
|
#include <gtest/gtest.h>
#include <mrpt/typemeta/TTypeName.h>
#include <mrpt/typemeta/TTypeName_stl.h>
#include <iostream>
#include <memory>
Go to the source code of this file.
Classes | |
struct | MyFooClass |
[example typename] More... | |
struct | MyNS::MyBarClass |
struct | MyNS::MyBarClass2 |
Namespaces | |
MyNS | |
[example-define-class] | |
Macros | |
#define | TST_FOR_TYPE(__TSTTYPE) EXPECT_STREQ(#__TSTTYPE, TTypeName<__TSTTYPE>::get().c_str()) |
#define | TST_FOR_TYPE2(__TSTTYPE, __TSTTYPE2ndpart) |
Functions | |
DECLARE_CUSTOM_TTYPENAME (MyFooClass) | |
DECLARE_CUSTOM_TTYPENAME (MyNS::MyBarClass) | |
TEST (TTypeName, types2str) | |
TEST (TTypeName, types2str_shared_ptr) | |
TEST (TTypeName, types2stdstring) | |
#define TST_FOR_TYPE | ( | __TSTTYPE | ) | EXPECT_STREQ(#__TSTTYPE, TTypeName<__TSTTYPE>::get().c_str()) |
Definition at line 34 of file typename_unittest.cpp.
Referenced by TEST().
#define TST_FOR_TYPE2 | ( | __TSTTYPE, | |
__TSTTYPE2ndpart | |||
) |
Definition at line 38 of file typename_unittest.cpp.
Referenced by TEST().
DECLARE_CUSTOM_TTYPENAME | ( | MyFooClass | ) |
DECLARE_CUSTOM_TTYPENAME | ( | MyNS::MyBarClass | ) |
TEST | ( | TTypeName | , |
types2str | |||
) |
Definition at line 46 of file typename_unittest.cpp.
References TST_FOR_TYPE, and TST_FOR_TYPE2.
TEST | ( | TTypeName | , |
types2str_shared_ptr | |||
) |
Definition at line 78 of file typename_unittest.cpp.
References TST_FOR_TYPE.
TEST | ( | TTypeName | , |
types2stdstring | |||
) |
Definition at line 89 of file typename_unittest.cpp.
References mrpt::typemeta::TTypeName< T >::get().
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 |