|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
Simple auto pointer providing deep copies for raw pointer 更多...
#include <qwt3d_autoptr.h>
Public 成员函数 | |
| ClonePtr (T *ptr=nullptr) | |
| ClonePtr (ClonePtr const &val) | |
| ClonePtr< T > & | operator= (ClonePtr const &val) |
| T * | operator-> () const |
| T & | operator* () const |
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.