Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Types | Public Member Functions | Public Attributes
mrpt::rtti::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 30 of file CObject.h.

#include <mrpt/rtti/CObject.h>

Public Types

using Ptr = safe_ptr< TRuntimeClassId >
 

Public Member Functions

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

Public Attributes

const char * className
 
mrpt::rtti::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...
 
const char * altName
 

Member Typedef Documentation

◆ Ptr

Definition at line 32 of file CObject.h.

Member Function Documentation

◆ createObject()

CObject * TRuntimeClassId::createObject ( ) const

◆ derivedFrom() [1/2]

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

◆ derivedFrom() [2/2]

bool TRuntimeClassId::derivedFrom ( const TRuntimeClassId pBaseClass) const

Member Data Documentation

◆ altName

const char* mrpt::rtti::TRuntimeClassId::altName

Definition at line 38 of file CObject.h.

◆ className

const char* mrpt::rtti::TRuntimeClassId::className

◆ getBaseClass

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

Gets the base class runtime id.

Definition at line 37 of file CObject.h.

Referenced by derivedFrom().

◆ ptrCreateObject

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

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

Definition at line 35 of file CObject.h.

Referenced by createObject().




Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST