A structure that holds runtime class type information.
Use CLASS_ID(<class_name>) to get a reference to the class_name's TRuntimeClassId descriptor.
#include <mrpt/utils/CObject.h>
Public Member Functions | |
mrpt::utils::CObject * | createObject () 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 NULL if it is virtual. More... | |
const TRuntimeClassId *(* | getBaseClass )() |
Gets the base class runtime id. More... | |
CObject * TRuntimeClassId::createObject | ( | ) | const |
Definition at line 88 of file CObject.cpp.
Referenced by mrpt::nav::CMultiObjectiveMotionOptimizerBase::Create(), mrpt::nav::CAbstractHolonomicReactiveMethod::Create(), mrpt::nav::CParameterizedTrajectoryGenerator::CreatePTG(), mrpt::utils::CStream::internal_ReadObject(), and TEST().
bool TRuntimeClassId::derivedFrom | ( | const TRuntimeClassId * | pBaseClass | ) | const |
Definition at line 27 of file CObject.cpp.
References ASSERT_, getBaseClass, and mrpt::utils::registerAllPendingClasses().
Referenced by mrpt::maps::CPointsMap::determineMatching2D(), mrpt::maps::COccupancyGridMap2D::determineMatching2D(), mrpt::maps::CPointsMap::determineMatching3D(), mrpt::slam::CICP::ICP3D_Method_Classic(), and mrpt::slam::CICP::ICP_Method_LM().
bool TRuntimeClassId::derivedFrom | ( | const char * | pBaseClass_name | ) | const |
Definition at line 56 of file CObject.cpp.
References ASSERT_, ASSERTMSG_, mrpt::utils::findRegisteredClass(), mrpt::format(), getBaseClass, and mrpt::utils::registerAllPendingClasses().
const char* mrpt::utils::TRuntimeClassId::className |
Definition at line 38 of file CObject.h.
Referenced by mrpt::poses::CPoseRandomSampler::do_sample_2D(), mrpt::poses::CPoseRandomSampler::do_sample_3D(), mrpt::utils::CStream::internal_ReadObject(), mrpt::utils::registerClass(), mrpt::opengl::COpenGLViewport::render(), mrpt::maps::CMultiMetricMap::saveMetricMapRepresentationToFile(), mrpt::poses::CPoseRandomSampler::setPosePDF(), TEST(), and mrpt::utils::CStream::WriteObject().
const TRuntimeClassId*(* mrpt::utils::TRuntimeClassId::getBaseClass) () |
Gets the base class runtime id.
Definition at line 42 of file CObject.h.
Referenced by derivedFrom().
mrpt::utils::CObject*(* mrpt::utils::TRuntimeClassId::ptrCreateObject) () |
Page generated by Doxygen 1.8.14 for MRPT 1.5.9 Git: 690a4699f Wed Apr 15 19:29:53 2020 +0200 at miƩ abr 15 19:30:12 CEST 2020 |