Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Public Attributes
mrpt::utils::TRuntimeClassId Struct Reference

Detailed Description

A structure that holds runtime class type information.

Use CLASS_ID(<class_name>) to get a reference to the class_name's TRuntimeClassId descriptor.

Definition at line 31 of file CObject.h.

#include <mrpt/utils/CObject.h>

Public Types

using Ptr = safe_ptr< TRuntimeClassId >
 

Public Member Functions

mrpt::utils::CObjectcreateObject () const
 
bool derivedFrom (const TRuntimeClassId *pBaseClass) const
 
bool derivedFrom (const char *pBaseClass_name) const
 

Public Attributes

const char * className
 
mrpt::utils::CObject *(* ptrCreateObject )()
 Create an object of the related class, or nullptr if it is virtual. More...
 
const TRuntimeClassId *(* getBaseClass )()
 Gets the base class runtime id. More...
 

Member Typedef Documentation

◆ Ptr

Definition at line 33 of file CObject.h.

Member Function Documentation

◆ createObject()

CObject * TRuntimeClassId::createObject ( ) const

◆ derivedFrom() [1/2]

bool TRuntimeClassId::derivedFrom ( const TRuntimeClassId pBaseClass) const

◆ derivedFrom() [2/2]

bool TRuntimeClassId::derivedFrom ( const char *  pBaseClass_name) const

Definition at line 61 of file CObject.cpp.

References ASSERTMSG_, mrpt::utils::findRegisteredClass(), mrpt::format(), getBaseClass, and mrpt::utils::registerAllPendingClasses().

Here is the call graph for this function:

Member Data Documentation

◆ className

const char* mrpt::utils::TRuntimeClassId::className

◆ getBaseClass

const TRuntimeClassId*(* mrpt::utils::TRuntimeClassId::getBaseClass) ()

Gets the base class runtime id.

Definition at line 38 of file CObject.h.

Referenced by derivedFrom().

◆ ptrCreateObject

mrpt::utils::CObject*(* mrpt::utils::TRuntimeClassId::ptrCreateObject) ()

Create an object of the related class, or nullptr if it is virtual.

Definition at line 36 of file CObject.h.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019