| 
    HDK
    
   | 
 
A shared ptr for encapsulating dynamically allocated arrays. More...
#include <UT_SharedArray.h>
 Inheritance diagram for UT_SharedArray< T >:Public Member Functions | |
| UT_SharedArray (T *p=0) | |
| void | clear () | 
| Convenience method to clear the pointer.  More... | |
| void | steal (T *src) | 
| Steal and take ownership of the data passed in.  More... | |
A shared ptr for encapsulating dynamically allocated arrays.
An shared array takes ownership of the object referenced. The reference counting is done outside the object interface, so the size of a UT_SharedArray is larger than a vanilla pointer.
As this is a wrapper around the boost hboost::shared_array template, the type (T) must have a Copy Constructor and a valid Assignment Operator
Definition at line 28 of file UT_SharedArray.h.
      
  | 
  inline | 
Definition at line 32 of file UT_SharedArray.h.
      
  | 
  inline | 
Convenience method to clear the pointer.
Definition at line 35 of file UT_SharedArray.h.
      
  | 
  inline | 
Steal and take ownership of the data passed in.
Definition at line 38 of file UT_SharedArray.h.