QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
Qwt3D::ClonePtr< T > 模板类 参考

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
 

详细描述

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.


该类的文档由以下文件生成: