Main MRPT website > C++ reference
MRPT logo
List of all members | Public Member Functions | Static Public Attributes | Static Protected Member Functions
mrpt::utils::CObject Class Referenceabstract

Detailed Description

The virtual base class of all MRPT classes with a unified RTTI system.

For each class named CMyClass, a new type named CMyClassPtr will be created as a smart pointer suitable for keeping referencing count smart pointers to objects of that class. By default the base class of all these smart pointers is CObjectPtr.

See also
mrpt::utils::CSerializable

Definition at line 115 of file CObject.h.

#include <mrpt/utils/CObject.h>

Inheritance diagram for mrpt::utils::CObject:
Inheritance graph
[legend]

Public Member Functions

virtual const mrpt::utils::TRuntimeClassIdGetRuntimeClass () const
 Returns information about the class of an object in runtime. More...
 
virtual CObjectduplicate () const =0
 Returns a copy of the object, indepently of its class. More...
 
mrpt::utils::CObjectPtr duplicateGetSmartPtr () const
 Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer). More...
 
CObjectclone () const
 Cloning interface for smart pointers. More...
 
virtual ~CObject ()
 

Static Public Attributes

static const mrpt::utils::TRuntimeClassId classCObject
 

Static Protected Member Functions

static mrpt::utils::TRuntimeClassId_GetBaseClass ()
 

Constructor & Destructor Documentation

◆ ~CObject()

virtual mrpt::utils::CObject::~CObject ( )
inlinevirtual

Definition at line 137 of file CObject.h.

Member Function Documentation

◆ _GetBaseClass()

static mrpt::utils::TRuntimeClassId* mrpt::utils::CObject::_GetBaseClass ( )
staticprotected

◆ clone()

CObject* mrpt::utils::CObject::clone ( ) const
inline

Cloning interface for smart pointers.

Definition at line 135 of file CObject.h.

◆ duplicate()

virtual CObject* mrpt::utils::CObject::duplicate ( ) const
pure virtual

Returns a copy of the object, indepently of its class.

Implemented in mrpt::reactivenav::CLogFileRecord_ND, mrpt::utils::CSimpleDatabase, mrpt::slam::CObservationIMU, mrpt::slam::CObservation3DRangeScan, mrpt::utils::CImage, mrpt::detectors::CDetectable3D, mrpt::hmtslam::THypothesisIDSet, mrpt::slam::COccupancyGridMap2D, mrpt::gui::CDisplayWindow3D, mrpt::hmtslam::CLocalMetricHypothesis, mrpt::hmtslam::CHMTSLAM, mrpt::slam::CHeightGridMap2D, mrpt::poses::CPose3D, mrpt::slam::CMultiMetricMapPDF, mrpt::slam::CMultiMetricMap, mrpt::opengl::COctoMapVoxels, mrpt::slam::CLandmarksMap, mrpt::vision::CFeature, mrpt::opengl::COpenGLViewport, mrpt::poses::CPointPDFParticles, mrpt::slam::CRawlog, mrpt::slam::CSensoryFrame, mrpt::kinematics::CKinematicChain, mrpt::slam::CObservation2DRangeScan, mrpt::poses::CPose3DInterpolator, mrpt::opengl::CPlanarLaserScan, mrpt::slam::CBeaconMap, mrpt::slam::CReflectivityGridMap2D, mrpt::opengl::CPointCloud, mrpt::hmtslam::CLSLAMParticleData, mrpt::opengl::CPointCloudColoured, mrpt::pbmap::Plane, mrpt::detectors::CDetectable2D, mrpt::opengl::COpenGLScene, mrpt::utils::CMHPropertiesValuesList, mrpt::opengl::CFrustum, mrpt::pbmap::PbMap, mrpt::poses::CPose3DRotVec, mrpt::poses::CPose3DQuat, mrpt::opengl::CEllipsoid, mrpt::opengl::CEllipsoidInverseDepth3D, mrpt::hmtslam::CHMHMapNode, mrpt::opengl::CAngularObservationMesh, mrpt::slam::CBeacon, mrpt::slam::CObservationStereoImages, mrpt::opengl::CVectorField2D, mrpt::opengl::CEllipsoidInverseDepth2D, mrpt::opengl::CText3D, mrpt::slam::CGasConcentrationGridMap2D, mrpt::slam::CObservationStereoImagesFeatures, mrpt::poses::CPose3DQuatPDFGaussianInf, mrpt::opengl::CMeshFast, mrpt::slam::CLandmark, mrpt::poses::CPose3DPDFParticles, mrpt::poses::CPose3DQuatPDFGaussian, mrpt::hmtslam::CRobotPosesGraph, mrpt::slam::CWirelessPowerGridMap2D, mrpt::opengl::CEllipsoidRangeBearing2D, mrpt::opengl::CMesh, mrpt::poses::CPosePDFParticles, mrpt::poses::CPosePDFSOG, mrpt::gui::CDisplayWindowPlots, mrpt::slam::COctoMap, mrpt::slam::CObservationImage, mrpt::opengl::CSetOfLines, mrpt::opengl::CText, mrpt::poses::CPose3DPDFGaussian, mrpt::poses::CPose3DPDFGaussianInf, mrpt::opengl::CPolyhedron, mrpt::poses::CPose2D, mrpt::poses::CPosePDFGaussianInf, mrpt::hmtslam::CHierarchicalMHMap, mrpt::slam::CColouredPointsMap, mrpt::slam::CIncrementalMapPartitioner, mrpt::slam::CRBPFParticleData, mrpt::poses::CPoint2D, mrpt::poses::CPointPDFSOG, mrpt::hmtslam::CHMHMapArc, mrpt::slam::CColouredOctoMap, mrpt::slam::CSimplePointsMap, mrpt::opengl::CBox, mrpt::opengl::CDisk, mrpt::opengl::CSetOfObjects, mrpt::poses::CPose3DPDFSOG, mrpt::poses::CPosePDFGaussian, mrpt::slam::CActionRobotMovement2D, mrpt::slam::CObservationBatteryState, mrpt::opengl::CGridPlaneXY, mrpt::opengl::CGridPlaneXZ, mrpt::math::CMatrixD, mrpt::poses::CPoint3D, mrpt::utils::TCamera, mrpt::slam::CObservationWindSensor, mrpt::slam::CSimpleMap, mrpt::opengl::CArrow, mrpt::opengl::CAxis, mrpt::opengl::CSphere, mrpt::slam::CWeightedPointsMap, mrpt::opengl::CCamera, mrpt::math::CMatrix, mrpt::poses::CPosePDFGrid, mrpt::utils::CStringList, mrpt::slam::CObservationOdometry, mrpt::opengl::CSetOfTexturedTriangles, mrpt::utils::CMemoryChunk, mrpt::slam::CActionCollection, mrpt::slam::CObservationGPS, mrpt::slam::CObservationRange, mrpt::slam::CObservationRawDAQ, mrpt::reactivenav::CLogFileRecord, mrpt::math::CSplineInterpolator1D, mrpt::utils::CPropertiesValuesList, mrpt::gui::CDisplayWindow, mrpt::slam::CObservationBearingRange, mrpt::slam::CObservationGasSensors, mrpt::slam::CObservationWirelessPower, mrpt::opengl::C3DSScene, mrpt::slam::CObservationVisualLandmarks, mrpt::math::CMatrixB, mrpt::poses::CPointPDFGaussian, mrpt::poses::CPoses2DSequence, mrpt::poses::CPoses3DSequence, mrpt::utils::CSimpleDatabaseTable, mrpt::slam::CActionRobotMovement3D, mrpt::slam::CObservationBeaconRanges, mrpt::slam::CObservationComment, mrpt::slam::CObservationRFID, mrpt::opengl::CCylinder, mrpt::opengl::CSetOfTriangles, mrpt::poses::TSimple3DPoint, mrpt::utils::TStereoCamera, mrpt::slam::CObservationReflectivity, mrpt::opengl::CGeneralizedCylinder, mrpt::math::CPolygon, mrpt::poses::CPoint2DPDFGaussian, mrpt::slam::CObservationCANBusJ1939, mrpt::opengl::COpenGLStandardObject, mrpt::opengl::CSimpleLine, mrpt::opengl::CTexturedPlane, mrpt::utils::CTypeSelector, and mrpt::reactivenav::CLogFileRecord_VFF.

◆ duplicateGetSmartPtr()

mrpt::utils::CObjectPtr mrpt::utils::CObject::duplicateGetSmartPtr ( ) const
inline

Returns a copy of the object, indepently of its class, as a smart pointer (the newly created object will exist as long as any copy of this smart pointer).

Definition at line 132 of file CObject.h.

◆ GetRuntimeClass()

virtual const mrpt::utils::TRuntimeClassId* mrpt::utils::CObject::GetRuntimeClass ( ) const
inlinevirtual

Returns information about the class of an object in runtime.

Reimplemented in mrpt::reactivenav::CLogFileRecord_ND, mrpt::utils::CSimpleDatabase, mrpt::slam::CRandomFieldGridMap2D, mrpt::slam::CObservationIMU, mrpt::slam::CObservation3DRangeScan, mrpt::utils::CImage, mrpt::slam::CMetricMap, mrpt::detectors::CDetectable3D, mrpt::hmtslam::THypothesisIDSet, mrpt::slam::COccupancyGridMap2D, mrpt::gui::CDisplayWindow3D, mrpt::hmtslam::CLocalMetricHypothesis, mrpt::hmtslam::CHMTSLAM, mrpt::slam::CHeightGridMap2D, mrpt::poses::CPose3D, mrpt::slam::CMultiMetricMapPDF, mrpt::slam::CPointsMap, mrpt::slam::CMultiMetricMap, mrpt::opengl::COctoMapVoxels, mrpt::slam::CLandmarksMap, mrpt::slam::CObservation, mrpt::vision::CFeature, mrpt::opengl::COpenGLViewport, mrpt::poses::CPointPDFParticles, mrpt::slam::CRawlog, mrpt::slam::CSensoryFrame, mrpt::kinematics::CKinematicChain, mrpt::slam::CObservation2DRangeScan, mrpt::poses::CPose3DInterpolator, mrpt::opengl::CPlanarLaserScan, mrpt::gui::CBaseGUIWindow, mrpt::slam::CBeaconMap, mrpt::slam::CReflectivityGridMap2D, mrpt::opengl::CRenderizable, mrpt::opengl::CPointCloud, mrpt::hmtslam::CLSLAMParticleData, mrpt::opengl::CPointCloudColoured, mrpt::pbmap::Plane, mrpt::detectors::CDetectable2D, mrpt::opengl::COpenGLScene, mrpt::utils::CMHPropertiesValuesList, mrpt::opengl::CFrustum, mrpt::pbmap::PbMap, mrpt::poses::CPose3DRotVec, mrpt::poses::CPose3DQuat, mrpt::poses::CPose3DQuatPDF, mrpt::opengl::CEllipsoid, mrpt::opengl::CEllipsoidInverseDepth3D, mrpt::hmtslam::CHMHMapNode, mrpt::opengl::CAngularObservationMesh, mrpt::slam::CBeacon, mrpt::slam::CObservationStereoImages, mrpt::opengl::CVectorField2D, mrpt::opengl::CEllipsoidInverseDepth2D, mrpt::opengl::CText3D, mrpt::poses::CPointPDF, mrpt::poses::CPose3DPDF, mrpt::slam::CGasConcentrationGridMap2D, mrpt::slam::CObservationStereoImagesFeatures, mrpt::poses::CPose3DQuatPDFGaussianInf, mrpt::poses::CPosePDF, mrpt::opengl::CMeshFast, mrpt::slam::CLandmark, mrpt::poses::CPose3DPDFParticles, mrpt::poses::CPose3DQuatPDFGaussian, mrpt::hmtslam::CRobotPosesGraph, mrpt::slam::CWirelessPowerGridMap2D, mrpt::opengl::CEllipsoidRangeBearing2D, mrpt::opengl::CMesh, mrpt::poses::CPosePDFParticles, mrpt::poses::CPosePDFSOG, mrpt::gui::CDisplayWindowPlots, mrpt::slam::COctoMap, mrpt::slam::CObservationImage, mrpt::opengl::CSetOfLines, mrpt::opengl::CText, mrpt::poses::CPose3DPDFGaussian, mrpt::poses::CPose3DPDFGaussianInf, mrpt::opengl::CPolyhedron, mrpt::poses::CPoint2DPDF, mrpt::poses::CPose2D, mrpt::poses::CPosePDFGaussianInf, mrpt::hmtslam::CHierarchicalMHMap, mrpt::slam::CColouredPointsMap, mrpt::slam::CIncrementalMapPartitioner, mrpt::slam::CRBPFParticleData, mrpt::poses::CPoint2D, mrpt::poses::CPointPDFSOG, mrpt::hmtslam::CHMHMapArc, mrpt::slam::CColouredOctoMap, mrpt::slam::CSimplePointsMap, mrpt::opengl::CBox, mrpt::opengl::CDisk, mrpt::opengl::CRenderizableDisplayList, mrpt::opengl::CSetOfObjects, mrpt::poses::CPose3DPDFSOG, mrpt::poses::CPosePDFGaussian, mrpt::slam::CActionRobotMovement2D, mrpt::slam::CObservationBatteryState, mrpt::opengl::CGridPlaneXY, mrpt::opengl::CGridPlaneXZ, mrpt::math::CMatrixD, mrpt::poses::CPoint3D, mrpt::utils::TCamera, mrpt::slam::CAction, mrpt::slam::CObservationWindSensor, mrpt::slam::CSimpleMap, mrpt::opengl::CArrow, mrpt::opengl::CAxis, mrpt::opengl::CSphere, mrpt::utils::CSerializable, mrpt::slam::CWeightedPointsMap, mrpt::opengl::CCamera, mrpt::math::CMatrix, mrpt::poses::CPosePDFGrid, mrpt::utils::CStringList, mrpt::slam::CObservationOdometry, mrpt::opengl::CSetOfTexturedTriangles, mrpt::utils::CMemoryChunk, mrpt::detectors::CDetectableObject, mrpt::slam::CActionCollection, mrpt::slam::CObservationGPS, mrpt::slam::CObservationRange, mrpt::slam::CObservationRawDAQ, mrpt::reactivenav::CLogFileRecord, mrpt::math::CSplineInterpolator1D, mrpt::utils::CPropertiesValuesList, mrpt::gui::CDisplayWindow, mrpt::slam::CObservationBearingRange, mrpt::slam::CObservationGasSensors, mrpt::slam::CObservationWirelessPower, mrpt::opengl::C3DSScene, mrpt::slam::CObservationVisualLandmarks, mrpt::math::CMatrixB, mrpt::poses::CPointPDFGaussian, mrpt::poses::CPoses2DSequence, mrpt::poses::CPoses3DSequence, mrpt::utils::CSimpleDatabaseTable, mrpt::slam::CActionRobotMovement3D, mrpt::slam::CObservationBeaconRanges, mrpt::slam::CObservationComment, mrpt::slam::CObservationRFID, mrpt::opengl::CCylinder, mrpt::opengl::CSetOfTriangles, mrpt::opengl::CTexturedObject, mrpt::poses::TSimple3DPoint, mrpt::utils::TStereoCamera, mrpt::slam::CObservationReflectivity, mrpt::opengl::CGeneralizedCylinder, mrpt::math::CPolygon, mrpt::poses::CPoint2DPDFGaussian, mrpt::slam::CObservationCANBusJ1939, mrpt::opengl::COpenGLStandardObject, mrpt::opengl::CSimpleLine, mrpt::opengl::CTexturedPlane, mrpt::utils::CTypeSelector, mrpt::reactivenav::CHolonomicLogFileRecord, and mrpt::reactivenav::CLogFileRecord_VFF.

Definition at line 123 of file CObject.h.

References CLASS_ID.

Member Data Documentation

◆ classCObject

const mrpt::utils::TRuntimeClassId mrpt::utils::CObject::classCObject
static

Definition at line 120 of file CObject.h.




Page generated by Doxygen 1.8.14 for MRPT 1.1.0 SVN: at lun oct 28 00:54:49 CET 2019 Hosted on:
SourceForge.net Logo