Main MRPT website > C++ reference for MRPT 1.9.9
List of all members | Public Member Functions | Static Public Member Functions
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
 

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

using MyNS::MyDerived1::ConstPtr = std::shared_ptr<const MyDerived1 >

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

using MyNS::MyDerived1::Ptr = std::shared_ptr< MyDerived1 >

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 169 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 ( )
inlinestaticconstexpr

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"
staticconstexpr

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.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST