#include <SkTemplates.h>
Public Member Functions | |
SkAutoSTArray (size_t count) | |
~SkAutoSTArray () | |
size_t | count () const |
T * | get () const |
T & | operator[] (int index) const |
Wraps SkAutoTArray, with room for up to N elements preallocated
Definition at line 124 of file SkTemplates.h.
SkAutoSTArray< N, T >::SkAutoSTArray | ( | size_t | count | ) | [inline] |
Allocate count number of T elements
Definition at line 128 of file SkTemplates.h.
SkAutoSTArray< N, T >::~SkAutoSTArray | ( | ) | [inline] |
Definition at line 139 of file SkTemplates.h.
size_t SkAutoSTArray< N, T >::count | ( | ) | const [inline] |
Return the number of T elements in the array
Definition at line 153 of file SkTemplates.h.
T* SkAutoSTArray< N, T >::get | ( | ) | const [inline] |
Return the array of T elements. Will be NULL if count == 0
Definition at line 157 of file SkTemplates.h.
T& SkAutoSTArray< N, T >::operator[] | ( | int | index | ) | const [inline] |
Return the nth element in the array
Definition at line 161 of file SkTemplates.h.