C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Smart pointer. More...

#include <templ_dptr.h>

+ Inheritance diagram for DPtr< T >:

Public Member Functions

 DPtr ()
 Default constructor.
 
 DPtr (T *obj)
 Constructor by pointer to an object.
 
 DPtr (const DPtr< T > &)
 Constructor by smart pointer to an object.
 
 ~DPtr ()
 Destructor.
 
 operator T* (void) const
 An access operator.
 
T & operator* (void) const
 An access operator.
 
T * operator-> (void) const
 An access operator.
 
DPtr< T > & operator= (T *)
 The assignment operator.
 
DPtr< T > & operator= (const DPtr< T > &src)
 The assignment operator.
 
DPtr< T > & reset ()
 A function of release an object.
 
const T * get () const
 Get pointer.
 
T * get ()
 Get pointer.
 
refcount_t use_count () const
 Get the number of DPtr objects that share ownership.
 
 DPtr (DPtr< T > &&src)
 Moving constructor.
 
DPtr< T > & operator= (DPtr< T > &&src)
 Moving operator.
 

Detailed Description

template<class T>
class DPtr< T >

Smart pointer.

Smart pointer to objects without reference counters.


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