jigdo API

ArrayAutoPtr< X > Class Template Reference

A variant of std::auto_ptr for pointers to arrays. More...

#include <autoptr.hh>

List of all members.


Public Types

typedef X element_type

Public Member Functions

 ArrayAutoPtr (X *p=0) throw ()
 ArrayAutoPtr (ArrayAutoPtr &a) throw ()
template<class Y>
 ArrayAutoPtr (ArrayAutoPtr< Y > &a) throw ()
ArrayAutoPtroperator= (ArrayAutoPtr &a) throw ()
template<class Y>
ArrayAutoPtroperator= (ArrayAutoPtr< Y > &a) throw ()
 ~ArrayAutoPtr () throw ()
X & operator* () const throw ()
X * operator-> () const throw ()
X * get () const throw ()
X * release () throw ()
void reset (X *p=0) throw ()

Detailed Description

template<class X>
class ArrayAutoPtr< X >

A variant of std::auto_ptr for pointers to arrays.

Aside note: Does not implement the "const auto_ptr copy protection".


Member Typedef Documentation

template<class X>
typedef X ArrayAutoPtr< X >::element_type


Constructor & Destructor Documentation

template<class X>
ArrayAutoPtr< X >::ArrayAutoPtr ( X *  p = 0  )  throw () [inline, explicit]

template<class X>
ArrayAutoPtr< X >::ArrayAutoPtr ( ArrayAutoPtr< X > &  a  )  throw () [inline]

template<class X>
template<class Y>
ArrayAutoPtr< X >::ArrayAutoPtr ( ArrayAutoPtr< Y > &  a  )  throw () [inline]

template<class X>
ArrayAutoPtr< X >::~ArrayAutoPtr (  )  throw () [inline]


Member Function Documentation

template<class X>
ArrayAutoPtr& ArrayAutoPtr< X >::operator= ( ArrayAutoPtr< X > &  a  )  throw () [inline]

template<class X>
template<class Y>
ArrayAutoPtr& ArrayAutoPtr< X >::operator= ( ArrayAutoPtr< Y > &  a  )  throw () [inline]

template<class X>
X& ArrayAutoPtr< X >::operator* (  )  const throw () [inline]

template<class X>
X* ArrayAutoPtr< X >::operator-> (  )  const throw () [inline]

template<class X>
X* ArrayAutoPtr< X >::get (  )  const throw () [inline]

Referenced by MkTemplate::run().

template<class X>
X* ArrayAutoPtr< X >::release (  )  throw () [inline]

template<class X>
void ArrayAutoPtr< X >::reset ( X *  p = 0  )  throw () [inline]


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

Generated on Tue Sep 23 14:27:42 2008 for jigdo by  doxygen 1.5.6