Template Class deepcopy_poly_ptr
Defined in File deepcopy_poly_ptr.h
Class Documentation
-
template<typename T>
class deepcopy_poly_ptr 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>See also
for non-virtual classes, see copy_ptr<T>
Public Functions
-
deepcopy_poly_ptr() = default
Default ctor; init to nullptr.
-
inline deepcopy_poly_ptr(const deepcopy_poly_ptr<T> &o)
copy ctor: makes a copy of the object via
clone()
-
inline deepcopy_poly_ptr<T> &operator=(const deepcopy_poly_ptr<T> &o)
-
inline deepcopy_poly_ptr<T> &operator=(const T &o_ptr)
-
inline deepcopy_poly_ptr(deepcopy_poly_ptr &&o)
move ctor
-
inline deepcopy_poly_ptr<T> &operator=(deepcopy_poly_ptr<T> &&o)
move operator
-
~deepcopy_poly_ptr() = default
-
inline operator bool() const
-
inline bool operator!(void) const
-
inline void reset()
-
deepcopy_poly_ptr() = default