DCMTK  Version 3.6.1 20120515
OFFIS DICOM Toolkit
Public Member Functions | Public Attributes
OFauto_ptr_ref< T > Class Template Reference

internal class, don't ever use this directly! This is needed to make the following code work: More...

List of all members.

Public Member Functions

 OFauto_ptr_ref (T *p)
 constructs a OFauto_ptr_ref from a pointer.

Public Attributes

T * ptr
 the pointer that it's all about

Detailed Description

template<class T>
class OFauto_ptr_ref< T >

internal class, don't ever use this directly! This is needed to make the following code work:

  OFauto_ptr<X> func() { return new X; }
  OFauto_ptr<X> local_var = func();
  

The compiler will add implicit casts to OFauto_ptr_ref to make this work:

  OFauto_ptr<X> func() { return OFauto_ptr_ref<X>(new X); }
  OFauto_ptr<X> local_var = OFstatic_cast(OFauto_ptr_ref<X>, func());
  

Constructor & Destructor Documentation

template<class T >
OFauto_ptr_ref< T >::OFauto_ptr_ref ( T *  p) [inline, explicit]

constructs a OFauto_ptr_ref from a pointer.

Parameters:
pthe pointer to use.

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


Generated on Tue May 15 2012 for DCMTK Version 3.6.1 20120515 by Doxygen 1.7.5.1-20111027