#include <SkTemplates.h>
Public Member Functions | |
SkAutoTArray (size_t count) | |
~SkAutoTArray () | |
T * | get () const |
T & | operator[] (int index) const |
Allocate an array of T elements, and free the array in the destructor
Definition at line 90 of file SkTemplates.h.
SkAutoTArray< T >::SkAutoTArray | ( | size_t | count | ) | [inline] |
Allocate count number of T elements
Definition at line 94 of file SkTemplates.h.
SkAutoTArray< T >::~SkAutoTArray | ( | ) | [inline] |
Definition at line 102 of file SkTemplates.h.
T* SkAutoTArray< T >::get | ( | ) | const [inline] |
Return the array of T elements. Will be NULL if count == 0
Definition at line 108 of file SkTemplates.h.
T& SkAutoTArray< T >::operator[] | ( | int | index | ) | const [inline] |
Return the nth element in the array
Definition at line 112 of file SkTemplates.h.