MRPT  1.9.9
mrpt::ptr_cast< CAST_TO > Struct Template Reference

Detailed Description

template<typename CAST_TO>
struct mrpt::ptr_cast< CAST_TO >

Converts a polymorphic smart pointer Base::Ptr to Derived::Ptr, in a way compatible with MRPT >=1.5.4 and MRPT 2.x series.

Definition at line 363 of file CObject.h.

#include <mrpt/rtti/CObject.h>

Static Public Member Functions

template<typename CAST_FROM_PTR >
static CAST_TO::Ptr from (const CAST_FROM_PTR &ptr)
 

Member Function Documentation

◆ from()

template<typename CAST_TO>
template<typename CAST_FROM_PTR >
static CAST_TO::Ptr mrpt::ptr_cast< CAST_TO >::from ( const CAST_FROM_PTR &  ptr)
inlinestatic
Examples:
rtti_example1/test.cpp.

Definition at line 366 of file CObject.h.

Referenced by mrpt::nav::CParameterizedTrajectoryGenerator::CreatePTG(), mrpt::nav::CMultiObjectiveMotionOptimizerBase::Factory(), mrpt::nav::CAbstractHolonomicReactiveMethod::Factory(), mrpt::serialization::CArchive::ReadObject(), mrpt::serialization::CArchive::ReadVariant(), and TEST().

Here is the caller graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019