MRPT  1.9.9
rtti_unittest.cpp File Reference
#include <mrpt/rtti/CObject.h>
#include <gtest/gtest.h>
Include dependency graph for rtti_unittest.cpp:

Go to the source code of this file.

Classes

class  MyNS::MyDerived1
 

Namespaces

 MyNS
 [example-define-class]
 

Functions

void do_register ()
 
 TEST (rtti, CObject_CLASSID)
 
 TEST (rtti, MyDerived1_CLASSID)
 
 TEST (rtti, Factory)
 

Function Documentation

◆ do_register()

void do_register ( )
Examples:
rtti_example1/test.cpp.

Definition at line 25 of file rtti_unittest.cpp.

References CLASS_ID_NAMESPACE, and mrpt::rtti::registerClass().

Referenced by TEST().

◆ TEST() [1/3]

TEST ( rtti  ,
CObject_CLASSID   
)

Definition at line 30 of file rtti_unittest.cpp.

References CLASS_ID, and mrpt::rtti::CObject::GetRuntimeClassIdStatic().

◆ TEST() [2/3]

TEST ( rtti  ,
MyDerived1_CLASSID   
)

Definition at line 37 of file rtti_unittest.cpp.

References CLASS_ID, and IS_DERIVED.

◆ TEST() [3/3]

TEST ( rtti  ,
Factory   
)

Definition at line 54 of file rtti_unittest.cpp.

References mrpt::rtti::classFactoryPtr(), and do_register().




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