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.
#include <mrpt/utils/CObject.h>
Public Member Functions | |
virtual const mrpt::utils::TRuntimeClassId * | GetRuntimeClass () const |
Returns information about the class of an object in runtime. | |
virtual CObject * | duplicate () const =0 |
Returns a copy of the object, indepently of its class. | |
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). | |
CObject * | clone () const |
Cloning interface for smart pointers. | |
virtual | ~CObject () |
Static Public Attributes | |
static const mrpt::utils::TRuntimeClassId | classCObject |
Static Protected Member Functions | |
static mrpt::utils::TRuntimeClassId * | _GetBaseClass () |
|
staticprotected |
|
inline |
|
pure virtual |
Returns a copy of the object, indepently of its class.
Implemented in mrpt::gui::CDisplayWindow, mrpt::gui::CDisplayWindow3D, and mrpt::gui::CDisplayWindowPlots.
|
inline |
|
inlinevirtual |
Returns information about the class of an object in runtime.
Reimplemented in mrpt::gui::CBaseGUIWindow, mrpt::gui::CDisplayWindow, mrpt::gui::CDisplayWindow3D, and mrpt::gui::CDisplayWindowPlots.
Definition at line 127 of file CObject.h.
References CLASS_ID.
|
static |
Page generated by Doxygen 1.9.6 for MRPT 1.4.0 SVN: at Wed Mar 22 06:31:24 UTC 2023 |