Planeshift
Public Member Functions

rcScopedDelete< T > Class Template Reference

A simple helper class used to delete an array when it goes out of scope. More...

#include <RecastAlloc.h>

List of all members.

Public Member Functions

 operator T * ()
 The root array pointer.
 rcScopedDelete (T *p)
 Constructs an instance with the specified pointer.
 rcScopedDelete ()
 Constructs an instance with a null pointer.
 ~rcScopedDelete ()

Detailed Description

template<class T>
class rcScopedDelete< T >

A simple helper class used to delete an array when it goes out of scope.

Note:
This class is rarely if ever used by the end user.

Definition at line 105 of file RecastAlloc.h.


Constructor & Destructor Documentation

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

Constructs an instance with a null pointer.

Definition at line 112 of file RecastAlloc.h.

template<class T >
rcScopedDelete< T >::rcScopedDelete ( T *  p) [inline]

Constructs an instance with the specified pointer.

Parameters:
[in]pAn pointer to an allocated array.

Definition at line 116 of file RecastAlloc.h.

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

Definition at line 117 of file RecastAlloc.h.


Member Function Documentation

template<class T >
rcScopedDelete< T >::operator T * ( ) [inline]

The root array pointer.

Returns:
The root array pointer.

Definition at line 121 of file RecastAlloc.h.


The documentation for this class was generated from the following file: