jigdo API
Last update by Admin on 2010-05-23
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 >:

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] |
References IListBase::iList_remove().
Member Function Documentation
template<class T>
AutoNullPtr<T>& AutoNullPtr< T >::operator= | ( | const AutoNullPtr< T > & | b | ) | [inline] |
References AutoNullPtr< T >::get(), and IListBase::iList_remove().
template<class T>
AutoNullPtr<T>& AutoNullPtr< T >::operator= | ( | T * | ptr | ) | [inline] |
References IListBase::iList_remove().
template<class T>
T* AutoNullPtr< T >::get | ( | ) | const [inline] |
Referenced by main(), operator!=(), AutoNullPtr< T >::operator=(), operator==(), operator>(), and operator>=().
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:
- util/autonullptr.hh
Generated on Tue Sep 23 14:27:42 2008 for jigdo by
