MRPT  1.9.9
List of all members | Public Member Functions
MyNS::MyDerived2 Class Reference

Detailed Description

Definition at line 26 of file rtti_unittest.cpp.

Inheritance diagram for MyNS::MyDerived2:

Public Member Functions

 MyDerived2 ()=default
 
RTTI classes and functions for polymorphic hierarchies
mrpt::rtti::CObject::Ptr duplicateGetSmartPtr () const
 Makes a deep copy of the object and returns a smart pointer to it. More...
 

RTTI stuff

using Ptr = std::shared_ptr< MyNS ::MyDerived2 >
 
using ConstPtr = std::shared_ptr< const MyNS ::MyDerived2 >
 
using UniquePtr = std::unique_ptr< MyNS ::MyDerived2 >
 
using ConstUniquePtr = std::unique_ptr< const MyNS ::MyDerived2 >
 
static const mrpt::rtti::TRuntimeClassId runtimeClassId
 
static constexpr const char * className = "MyNS" "::" "MyDerived2"
 
virtual const mrpt::rtti::TRuntimeClassIdGetRuntimeClass () const override
 Returns information about the class of an object in runtime. More...
 
virtual mrpt::rtti::CObjectclone () const override
 Returns a deep copy (clone) of the object, indepently of its class. More...
 
static const mrpt::rtti::TRuntimeClassId_GetBaseClass ()
 
static constexpr auto getClassName ()
 
static const mrpt::rtti::TRuntimeClassIdGetRuntimeClassIdStatic ()
 
static std::shared_ptr< CObjectCreateObject ()
 
template<typename... Args>
static Ptr Create (Args &&... args)
 
template<typename Alloc , typename... Args>
static Ptr CreateAlloc (const Alloc &alloc, Args &&... args)
 
template<typename... Args>
static UniquePtr CreateUnique (Args &&... args)
 

Member Typedef Documentation

◆ ConstPtr

Definition at line 30 of file rtti_unittest.cpp.

◆ ConstUniquePtr

using MyNS::MyDerived2::ConstUniquePtr = std::unique_ptr<const MyNS :: MyDerived2 >

Definition at line 30 of file rtti_unittest.cpp.

◆ Ptr

A type for the associated smart pointer

Definition at line 30 of file rtti_unittest.cpp.

◆ UniquePtr

using MyNS::MyDerived2::UniquePtr = std::unique_ptr< MyNS :: MyDerived2 >

Definition at line 30 of file rtti_unittest.cpp.

Constructor & Destructor Documentation

◆ MyDerived2()

MyNS::MyDerived2::MyDerived2 ( )
default

Member Function Documentation

◆ _GetBaseClass()

static const mrpt::rtti::TRuntimeClassId* MyNS::MyDerived2::_GetBaseClass ( )
staticprotected

◆ clone()

virtual mrpt::rtti::CObject* MyNS::MyDerived2::clone ( ) const
overridevirtual

Returns a deep copy (clone) of the object, indepently of its class.

Implements mrpt::rtti::CObject.

◆ Create()

template<typename... Args>
static Ptr MyNS::MyDerived2::Create ( Args &&...  args)
inlinestatic

Definition at line 30 of file rtti_unittest.cpp.

◆ CreateAlloc()

template<typename Alloc , typename... Args>
static Ptr MyNS::MyDerived2::CreateAlloc ( const Alloc &  alloc,
Args &&...  args 
)
inlinestatic

Definition at line 30 of file rtti_unittest.cpp.

◆ CreateObject()

static std::shared_ptr<CObject> MyNS::MyDerived2::CreateObject ( )
static

◆ CreateUnique()

template<typename... Args>
static UniquePtr MyNS::MyDerived2::CreateUnique ( Args &&...  args)
inlinestatic

Definition at line 30 of file rtti_unittest.cpp.

◆ duplicateGetSmartPtr()

mrpt::rtti::CObject::Ptr CObject::duplicateGetSmartPtr ( ) const
inlineinherited

Makes a deep copy of the object and returns a smart pointer to it.

Definition at line 204 of file CObject.h.

References mrpt::rtti::CObject::clone().

Referenced by mrpt::obs::CRawlog::addActions(), and mrpt::obs::CRawlog::addObservations().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getClassName()

static constexpr auto MyNS::MyDerived2::getClassName ( )
inlinestatic

Definition at line 30 of file rtti_unittest.cpp.

◆ GetRuntimeClass()

virtual const mrpt::rtti::TRuntimeClassId* MyNS::MyDerived2::GetRuntimeClass ( ) const
overridevirtual

Returns information about the class of an object in runtime.

Reimplemented from mrpt::rtti::CObject.

◆ GetRuntimeClassIdStatic()

static const mrpt::rtti::TRuntimeClassId& MyNS::MyDerived2::GetRuntimeClassIdStatic ( )
static

Member Data Documentation

◆ className

constexpr const char* MyNS::MyDerived2::className = "MyNS" "::" "MyDerived2"
static

Definition at line 30 of file rtti_unittest.cpp.

◆ runtimeClassId

const mrpt::rtti::TRuntimeClassId MyNS::MyDerived2::runtimeClassId
staticprotected

Definition at line 30 of file rtti_unittest.cpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7e629e01a Sat Dec 14 00:05:55 2019 +0100 at sáb dic 14 00:15:10 CET 2019