MRPT  1.9.9
Classes | Namespaces | Functions
rtti_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/core/aligned_allocator.h>
#include <mrpt/rtti/CObject.h>
Include dependency graph for rtti_unittest.cpp:

Go to the source code of this file.

Classes

class  MyNS::MyDerived1
 
class  MyNS::MyDerived2
 

Namespaces

 MyNS
 [example-define-class]
 

Functions

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

Function Documentation

◆ do_register()

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

Definition at line 41 of file rtti_unittest.cpp.

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

Referenced by TEST().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ TEST() [1/4]

TEST ( rtti  ,
CObject_CLASSID   
)

Definition at line 47 of file rtti_unittest.cpp.

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

Here is the call graph for this function:

◆ TEST() [2/4]

TEST ( rtti  ,
MyDerived1_CLASSID   
)

Definition at line 54 of file rtti_unittest.cpp.

References CLASS_ID, EXPECT_TRUE(), and IS_DERIVED.

Here is the call graph for this function:

◆ TEST() [3/4]

TEST ( rtti  ,
Factory   
)

Definition at line 72 of file rtti_unittest.cpp.

References mrpt::rtti::classFactory(), do_register(), and EXPECT_TRUE().

Here is the call graph for this function:

◆ TEST() [4/4]

TEST ( rtti  ,
CreateSmartPointerTypes   
)

Definition at line 86 of file rtti_unittest.cpp.

References EXPECT_EQ(), and EXPECT_TRUE().

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: c7a3bec24 Sun Mar 29 18:33:13 2020 +0200 at dom mar 29 18:50:38 CEST 2020