jigdo API

AutoNullPtr< T > Class Template Reference

A pointer which gets set to null if the pointed-to object is deleted. More...

#include <autonullptr.hh>

Inheritance diagram for AutoNullPtr< T >:

IListBase

List of all members.


Public Member Functions

 AutoNullPtr ()
 AutoNullPtr (T *ptr)
 AutoNullPtr (const AutoNullPtr< T > &b)
 ~AutoNullPtr ()
AutoNullPtr< T > & operator= (const AutoNullPtr< T > &b)
AutoNullPtr< T > & operator= (T *ptr)
T * get () const
T & operator* () const
T * operator-> () const
 operator bool () const

Detailed Description

template<class T>
class AutoNullPtr< T >

A pointer which gets set to null if the pointed-to object is deleted.

Constructor & Destructor Documentation

template<class T>
AutoNullPtr< T >::AutoNullPtr (  )  [inline]

template<class T>
AutoNullPtr< T >::AutoNullPtr ( T *  ptr  )  [inline]

template<class T>
AutoNullPtr< T >::AutoNullPtr ( const AutoNullPtr< T > &  b  )  [inline]

template<class T>
AutoNullPtr< T >::~AutoNullPtr (  )  [inline]


Member Function Documentation

template<class T>
AutoNullPtr<T>& AutoNullPtr< T >::operator= ( const AutoNullPtr< T > &  b  )  [inline]

template<class T>
AutoNullPtr<T>& AutoNullPtr< T >::operator= ( T *  ptr  )  [inline]

template<class T>
T* AutoNullPtr< T >::get (  )  const [inline]

template<class T>
T& AutoNullPtr< T >::operator* (  )  const [inline]

template<class T>
T* AutoNullPtr< T >::operator-> (  )  const [inline]

template<class T>
AutoNullPtr< T >::operator bool (  )  const [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