MRPT  1.9.9
MyNS::MyDerived1 Class Reference

Detailed Description

Definition at line 15 of file rtti_unittest.cpp.

Inheritance diagram for MyNS::MyDerived1:
Inheritance graph

Public Member Functions

 MyDerived1 ()
 
voidoperator new (size_t size)
 
voidoperator new[] (size_t size)
 
void operator delete (void *ptr) noexcept
 
void operator delete[] (void *ptr) noexcept
 
void operator delete (void *memory, void *ptr) noexcept
 
voidoperator new (size_t size, const std::nothrow_t &) noexcept
 
void operator delete (void *ptr, const std::nothrow_t &) noexcept
 
RTTI classes and functions for polymorphic hierarchies
mrpt::rtti::CObject::Ptr 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...
 

Static Public Member Functions

static voidoperator new (size_t size, void *ptr)
 

RTTI stuff

using Ptr = std::shared_ptr< MyDerived1 >
 
using ConstPtr = std::shared_ptr< const MyDerived1 >
 
using UniquePtr = std::unique_ptr< MyDerived1 >
 
using ConstUniquePtr = std::unique_ptr< const MyDerived1 >
 
static mrpt::rtti::CLASSINIT _init_MyDerived1
 
static const mrpt::rtti::TRuntimeClassId runtimeClassId
 
static constexpr const char * className = "MyDerived1"
 
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 mrpt::rtti::CObjectCreateObject ()
 
template<typename... Args>
static Ptr Create (Args &&... args)
 
template<typename... Args>
static UniquePtr CreateUnique (Args &&... args)
 

Member Typedef Documentation

◆ ConstPtr

Definition at line 19 of file rtti_unittest.cpp.

◆ ConstUniquePtr

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

Definition at line 19 of file rtti_unittest.cpp.

◆ Ptr

A type for the associated smart pointer

Definition at line 19 of file rtti_unittest.cpp.

◆ UniquePtr

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

Definition at line 19 of file rtti_unittest.cpp.

Constructor & Destructor Documentation

◆ MyDerived1()

MyNS::MyDerived1::MyDerived1 ( )
inline

Definition at line 18 of file rtti_unittest.cpp.

Member Function Documentation

◆ _GetBaseClass()

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

◆ clone()

virtual mrpt::rtti::CObject* MyNS::MyDerived1::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::MyDerived1::Create ( Args &&...  args)
inlinestatic

Definition at line 19 of file rtti_unittest.cpp.

◆ CreateObject()

static mrpt::rtti::CObject* MyNS::MyDerived1::CreateObject ( )
static

◆ CreateUnique()

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

Definition at line 19 of file rtti_unittest.cpp.

◆ duplicateGetSmartPtr()

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

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

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

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

◆ getClassName()

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

Definition at line 19 of file rtti_unittest.cpp.

◆ GetRuntimeClass()

virtual const mrpt::rtti::TRuntimeClassId* MyNS::MyDerived1::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::MyDerived1::GetRuntimeClassIdStatic ( )
static

◆ operator delete() [1/3]

void MyNS::MyDerived1::operator delete ( void memory,
void ptr 
)
inlinenoexcept

Definition at line 19 of file rtti_unittest.cpp.

◆ operator delete() [2/3]

void MyNS::MyDerived1::operator delete ( void ptr)
inlinenoexcept

Definition at line 19 of file rtti_unittest.cpp.

◆ operator delete() [3/3]

void MyNS::MyDerived1::operator delete ( void ptr,
const std::nothrow_t &   
)
inlinenoexcept

Definition at line 19 of file rtti_unittest.cpp.

◆ operator delete[]()

void MyNS::MyDerived1::operator delete[] ( void ptr)
inlinenoexcept

Definition at line 19 of file rtti_unittest.cpp.

◆ operator new() [1/3]

void* MyNS::MyDerived1::operator new ( size_t  size)
inline

Definition at line 19 of file rtti_unittest.cpp.

◆ operator new() [2/3]

void* MyNS::MyDerived1::operator new ( size_t  size,
const std::nothrow_t &   
)
inlinenoexcept

Definition at line 19 of file rtti_unittest.cpp.

◆ operator new() [3/3]

static void* MyNS::MyDerived1::operator new ( size_t  size,
void ptr 
)
inlinestatic

Definition at line 19 of file rtti_unittest.cpp.

◆ operator new[]()

void* MyNS::MyDerived1::operator new[] ( size_t  size)
inline

Definition at line 19 of file rtti_unittest.cpp.

Member Data Documentation

◆ _init_MyDerived1

mrpt::rtti::CLASSINIT MyNS::MyDerived1::_init_MyDerived1
staticprotected

Definition at line 19 of file rtti_unittest.cpp.

◆ className

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

Definition at line 19 of file rtti_unittest.cpp.

◆ runtimeClassId

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

Definition at line 19 of file rtti_unittest.cpp.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 7d5e6d718 Fri Aug 24 01:51:28 2018 +0200 at lun nov 2 08:35:50 CET 2020