CS::Utility::ScopedDelete< T > Class Template Reference
Helper class todelete a pointer when exiting a scope.
More...
#include <csutil/scopeddelete.h>
Inheritance diagram for CS::Utility::ScopedDelete< T >:

Public Member Functions | |
| operator T * () const | |
| Cast to a pointer. | |
| T & | operator* () const |
| Dereference underlying pointer. | |
| T * | operator-> () const |
| Dereference underlying pointer. | |
| ScopedDelete (T *ptr) | |
| Construct from given pointer. | |
| ~ScopedDelete () | |
| Destruct. Deletes the given pointer! | |
Detailed Description
template<class T>
class CS::Utility::ScopedDelete< T >
Helper class to delete a pointer when exiting a scope.
T is the type pointed to.
Definition at line 37 of file scopeddelete.h.
Constructor & Destructor Documentation
template<class T >
| CS::Utility::ScopedDelete< T >::ScopedDelete | ( | T * | ptr | ) | [inline] |
template<class T >
| CS::Utility::ScopedDelete< T >::~ScopedDelete | ( | ) | [inline] |
Member Function Documentation
template<class T >
| CS::Utility::ScopedDelete< T >::operator T * | ( | ) | const [inline] |
template<class T >
| T& CS::Utility::ScopedDelete< T >::operator* | ( | ) | const [inline] |
template<class T >
| T* CS::Utility::ScopedDelete< T >::operator-> | ( | ) | const [inline] |
The documentation for this class was generated from the following file:
- csutil/scopeddelete.h
Generated for Crystal Space 1.4.0 by doxygen 1.5.8
