#include <autoptr.hxx>
Public Member Functions | |
PTAutoPtr (T *p, bool owns=true) | |
PTAutoPtr (const PTAutoPtr< T > &r) | |
const PTAutoPtr & | operator= (const PTAutoPtr &r) |
T * | get () const |
T * | operator-> () |
T & | operator * () const |
~PTAutoPtr () | |
Private Member Functions | |
void | init (const PTAutoPtr &r) |
void | destroy () |
Private Attributes | |
T * | m_p |
bool | m_owns |
xyzzy::PTAutoPtr< T >::PTAutoPtr | ( | T * | p, | |
bool | owns = true | |||
) | [inline, explicit] |
xyzzy::PTAutoPtr< T >::PTAutoPtr | ( | const PTAutoPtr< T > & | r | ) | [inline] |
xyzzy::PTAutoPtr< T >::~PTAutoPtr | ( | ) | [inline] |
const PTAutoPtr& xyzzy::PTAutoPtr< T >::operator= | ( | const PTAutoPtr< T > & | r | ) | [inline] |
T* xyzzy::PTAutoPtr< T >::get | ( | ) | const [inline] |
T* xyzzy::PTAutoPtr< T >::operator-> | ( | ) | [inline] |
T& xyzzy::PTAutoPtr< T >::operator * | ( | ) | const [inline] |
void xyzzy::PTAutoPtr< T >::init | ( | const PTAutoPtr< T > & | r | ) | [inline, private] |
void xyzzy::PTAutoPtr< T >::destroy | ( | ) | [inline, private] |
T* xyzzy::PTAutoPtr< T >::m_p [private] |
bool xyzzy::PTAutoPtr< T >::m_owns [private] |