Arc::AutoPointer< T > Class Template Reference

Wrapper for pointer with automatic destruction. More...

#include <Utils.h>

Public Member Functions

 AutoPointer (void)
 AutoPointer (T *o)
 ~AutoPointer (void)
T & operator* (void) const
T * operator-> (void) const
 operator bool (void) const
bool operator! (void) const
T * Ptr (void) const
T * Release (void)

Detailed Description

template<typename T>
class Arc::AutoPointer< T >

Wrapper for pointer with automatic destruction.

If ordinary pointer is wrapped in instance of this class it will be automatically destroyed when instance is destroyed. This is useful for maintaing pointers in scope of one function. Only pointers returned by new() are supported.


The documentation for this class was generated from the following file:
Generated on Wed Jun 27 11:54:22 2012 for Hosting Environment (Daemon) by  doxygen 1.6.3