MRPT
1.9.9
|
Wrapper to a std::shared_ptr<>, adding deep-copy semantics to copy ctor and copy operator, suitable for polymorphic classes with a clone()
method.
Example use: deepcopy_poly_ptr<mrpt::poses::CPosePDF::Ptr>
Definition at line 25 of file deepcopy_poly_ptr.h.
#include <mrpt/containers/deepcopy_poly_ptr.h>
Public Member Functions | |
deepcopy_poly_ptr (const T &ptr) | |
Ctor from a smart pointer; makes deep copy. More... | |
deepcopy_poly_ptr () | |
Default ctor; init to nullptr. More... | |
deepcopy_poly_ptr (const deepcopy_poly_ptr< T > &o) | |
copy ctor: makes a copy of the object via clone() More... | |
deepcopy_poly_ptr< T > & | operator= (const deepcopy_poly_ptr< T > &o) |
deepcopy_poly_ptr< T > & | operator= (const T &o_ptr) |
deepcopy_poly_ptr (deepcopy_poly_ptr &&o) | |
move ctor More... | |
deepcopy_poly_ptr< T > & | operator= (deepcopy_poly_ptr< T > &&o) |
move operator More... | |
~deepcopy_poly_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 29 of file deepcopy_poly_ptr.h.
|
inline |
Default ctor; init to nullptr.
Definition at line 34 of file deepcopy_poly_ptr.h.
|
inline |
copy ctor: makes a copy of the object via clone()
Definition at line 36 of file deepcopy_poly_ptr.h.
|
inline |
move ctor
Definition at line 55 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 68 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 69 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 76 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 90 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 91 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 88 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 89 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 86 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 87 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 84 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 85 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 41 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 48 of file deepcopy_poly_ptr.h.
|
inline |
move operator
Definition at line 61 of file deepcopy_poly_ptr.h.
|
inline |
Definition at line 92 of file deepcopy_poly_ptr.h.
|
private |
Definition at line 95 of file deepcopy_poly_ptr.h.
Referenced by mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::deepcopy_poly_ptr(), mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::get(), mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::get_ptr(), mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::operator bool(), mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::operator!(), mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::operator=(), and mrpt::containers::deepcopy_poly_ptr< std::shared_ptr >::reset().
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 |