a simple autopointer.
More...
List of all members.
Detailed Description
template<class T>
class PtrMan< T >
a simple autopointer.
It is assigned to a pointer, and takes over the responsibility for its deletion. For Arrays, use the ArrPtrMan class.
Constructor & Destructor Documentation
Member Function Documentation
template<class T >
| void PtrMan< T >::erase |
( |
|
) |
[inline] |
template<class T >
| PtrMan< T >::operator const T * |
( |
|
) |
const [inline] |
template<class T >
| PtrMan< T >::operator T * |
( |
|
) |
[inline] |
template<class T >
| bool PtrMan< T >::operator! |
( |
|
) |
const [inline] |
template<class T >
| T& PtrMan< T >::operator* |
( |
|
) |
[inline] |
template<class T >
| T* PtrMan< T >::operator-> |
( |
|
) |
[inline] |
template<class T >
| const T* PtrMan< T >::operator-> |
( |
|
) |
const [inline] |
template<class T >
| PtrMan<T>& PtrMan< T >::operator= |
( |
const T & |
p |
) |
const [private] |
template<class T >
| T* PtrMan< T >::ptr |
( |
|
) |
[inline] |
template<class T >
| void PtrMan< T >::set |
( |
T * |
p, |
|
|
bool |
doerase = true | |
|
) |
| | [inline] |
Member Data Documentation