qwt3d_ptr Class Template Reference

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

#include <qwt3d_autoptr.h>

List of all members.

Public Member Functions

 qwt3d_ptr (T *ptr=0)
 ~qwt3d_ptr ()
 qwt3d_ptr (qwt3d_ptr const &val)
qwt3d_ptr< T > & operator= (qwt3d_ptr const &val)
T * operator-> () const
T & operator * () const


Detailed Description

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

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.


Constructor & Destructor Documentation

qwt3d_ptr ( T *  ptr = 0  )  [inline, explicit]

Standard ctor.

~qwt3d_ptr (  )  [inline]

Dtor (calls T::destroy).

qwt3d_ptr ( qwt3d_ptr< T > const &  val  )  [inline]

Copy ctor (calls (virtual) clone()).


Member Function Documentation

qwt3d_ptr<T>& operator= ( qwt3d_ptr< T > const &  val  )  [inline]

Assignment in the same spirit as copy ctor.

T* operator-> (  )  const [inline]

It's a pointerlike object, isn't it ?

T& operator * (  )  const [inline]

Dereferencing.


The documentation for this class was generated from the following file:
Generated on Mon Jun 25 18:47:28 2007 for QwtPlot3D API by  doxygen 1.5.1