Main MRPT website > C++ reference
MRPT logo

mrpt::utils::CObject Class Reference

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

#include <mrpt/utils/CObject.h>

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

List of all members.

Public Member Functions

virtual const
mrpt::utils::TRuntimeClassId
GetRuntimeClass () const
 Returns information about the class of an object in runtime.
virtual CObjectduplicate () 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).
CObjectclone () 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 ()

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 129 of file CObject.h.


Constructor & Destructor Documentation

virtual mrpt::utils::CObject::~CObject (  )  [inline, virtual]

Definition at line 151 of file CObject.h.


Member Function Documentation

static mrpt::utils::TRuntimeClassId* mrpt::utils::CObject::_GetBaseClass (  )  [static, protected]
CObject* mrpt::utils::CObject::clone (  )  const [inline]

Cloning interface for smart pointers.

Reimplemented in mrpt::opengl::CRenderizable.

Definition at line 149 of file CObject.h.

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

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

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 146 of file CObject.h.

virtual const mrpt::utils::TRuntimeClassId* mrpt::utils::CObject::GetRuntimeClass (  )  const [inline, virtual]

Returns information about the class of an object in runtime.

Definition at line 137 of file CObject.h.

References CLASS_ID.


Member Data Documentation

Definition at line 134 of file CObject.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010