Main MRPT website > C++ reference for MRPT 1.9.9
Classes | Namespaces | Functions
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: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019