Wrapper to a clone smart pointer to polymorphic classes, capable of handling copy operator, etc.
making deep copies. Example use: poly_ptr_ptr<mrpt::poses::CPosePDF::Ptr>
Definition at line 27 of file poly_ptr_ptr.h.
#include <mrpt/utils/poly_ptr_ptr.h>
Public Member Functions | |
poly_ptr_ptr (const T &ptr) | |
Ctor from a smart pointer; makes deep copy. More... | |
poly_ptr_ptr () | |
Default ctor; init to nullptr. More... | |
poly_ptr_ptr (const poly_ptr_ptr< T > &o) | |
copy ctor: makes a copy of the object via clone() More... | |
poly_ptr_ptr< T > & | operator= (const poly_ptr_ptr< T > &o) |
poly_ptr_ptr< T > & | operator= (const T &o_ptr) |
poly_ptr_ptr (poly_ptr_ptr &&o) | |
move ctor More... | |
poly_ptr_ptr< T > & | operator= (poly_ptr_ptr< T > &&o) |
move operator More... | |
~poly_ptr_ptr () | |
T::element_type * | get () |
const T::element_type * | get () const |
T::element_type * | operator-> () |
const T::element_type * | operator-> () const |
T::element_type & | operator* (void) |
const T::element_type & | operator* (void) const |
operator bool () const | |
bool | operator! (void) const |
const T & | get_ptr () const |
T & | get_ptr () |
void | reset () |
Private Attributes | |
T | m_smartptr |
|
inline |
Ctor from a smart pointer; makes deep copy.
Definition at line 31 of file poly_ptr_ptr.h.
|
inline |
Default ctor; init to nullptr.
Definition at line 36 of file poly_ptr_ptr.h.
|
inline |
copy ctor: makes a copy of the object via clone()
Definition at line 38 of file poly_ptr_ptr.h.
|
inline |
move ctor
Definition at line 57 of file poly_ptr_ptr.h.
|
inline |
Definition at line 70 of file poly_ptr_ptr.h.
|
inline |
Definition at line 71 of file poly_ptr_ptr.h.
Referenced by mrpt::obs::CActionRobotMovement2D::computeFromOdometry_modelGaussian(), mrpt::obs::CActionRobotMovement2D::computeFromOdometry_modelThrun(), and mrpt::obs::CActionRobotMovement2D::prepareFastDrawSingleSample_modelGaussian().
|
inline |
Definition at line 78 of file poly_ptr_ptr.h.
|
inline |
Definition at line 92 of file poly_ptr_ptr.h.
Referenced by mrpt::slam::AuxiliaryPFStandardAndOptimal< USE_OPTIMAL_SAMPLING >::PF_SLAM_implementation_gatherActionsCheckBothActObs().
|
inline |
Definition at line 93 of file poly_ptr_ptr.h.
|
inline |
Definition at line 90 of file poly_ptr_ptr.h.
|
inline |
Definition at line 91 of file poly_ptr_ptr.h.
|
inline |
Definition at line 88 of file poly_ptr_ptr.h.
|
inline |
Definition at line 89 of file poly_ptr_ptr.h.
|
inline |
Definition at line 86 of file poly_ptr_ptr.h.
|
inline |
Definition at line 87 of file poly_ptr_ptr.h.
|
inline |
Definition at line 43 of file poly_ptr_ptr.h.
|
inline |
Definition at line 50 of file poly_ptr_ptr.h.
|
inline |
move operator
Definition at line 63 of file poly_ptr_ptr.h.
|
inline |
Definition at line 94 of file poly_ptr_ptr.h.
|
private |
Definition at line 96 of file poly_ptr_ptr.h.
Referenced by mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::get(), mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::get_ptr(), mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::operator bool(), mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::operator!(), mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::operator=(), mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::poly_ptr_ptr(), and mrpt::utils::poly_ptr_ptr< mrpt::poses::CPosePDFSOG::Ptr >::reset().
Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: ae4571287 Thu Nov 23 00:06:53 2017 +0100 at dom oct 27 23:51:55 CET 2019 |