QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Qwt3D::ClonePtr< T > Class Template Reference

Simple auto pointer providing deep copies for raw pointer. More...

#include <qwt3d_autoptr.h>

Public Member Functions

 ClonePtr (T *ptr=nullptr)
 
 ClonePtr (ClonePtr const &val)
 
ClonePtr< T > & operator= (ClonePtr const &val)
 
T * operator-> () const
 
T & operator* () const
 

Detailed Description

template<typename T>
class Qwt3D::ClonePtr< T >

Simple auto pointer providing deep copies for raw pointer.

Requirements:
virtual T* T::clone() const;
T::destroy() const;
virtual ~T() private/protected

clone() is necessary for the pointer to preserve polymorphic behaviour. The pointer requires also heap based objects with regard to the template argument in order to be able to get ownership and control over destruction.


The documentation for this class was generated from the following file: