| 
    MRPT
    2.0.4
    
   | 
 
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 | |
| 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 ()=default | |
| 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* () 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.
      
  | 
  default | 
Default ctor; init to nullptr.
      
  | 
  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.
      
  | 
  default | 
      
  | 
  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 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |