ArrDelAdapter< T > Class Template Reference

#include <ArrDelAdapter.h>

Collaboration diagram for ArrDelAdapter< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ArrDelAdapter (T *p)
 ArrDelAdapter (const ArrDelAdapter< T > &var)
 ~ArrDelAdapter ()

Private Attributes

T * p_

Detailed Description

template<typename T>
class ArrDelAdapter< T >

A auto_ptr implementation to handle array memory management.

Definition at line 15 of file ArrDelAdapter.h.


Constructor & Destructor Documentation

template<typename T>
ArrDelAdapter< T >::ArrDelAdapter ( T *  p  )  [inline]

Definition at line 17 of file ArrDelAdapter.h.

00017 : p_(p) { }

template<typename T>
ArrDelAdapter< T >::ArrDelAdapter ( const ArrDelAdapter< T > &  var  )  [inline]

Definition at line 18 of file ArrDelAdapter.h.

References ArrDelAdapter< T >::p_.

00019   : p_(var.p_) {
00020     // copier gets sole handle to ptr
00021     const_cast<ArrDelAdapter<T>&>(var).p_ = 0;
00022   }

template<typename T>
ArrDelAdapter< T >::~ArrDelAdapter (  )  [inline]

Definition at line 23 of file ArrDelAdapter.h.

References ArrDelAdapter< T >::p_.

00023                    {
00024     delete [] p_;
00025   }


Member Data Documentation

template<typename T>
T* ArrDelAdapter< T >::p_ [private]

Definition at line 28 of file ArrDelAdapter.h.

Referenced by ArrDelAdapter< T >::ArrDelAdapter(), and ArrDelAdapter< T >::~ArrDelAdapter().


The documentation for this class was generated from the following file:
Generated on Fri Feb 12 20:05:54 2016 for OpenDDS by  doxygen 1.4.7