Lines Matching defs:SkAutoTDelete
114 /** \class SkAutoTDelete
115 An SkAutoTDelete<T> is like a T*, except that the destructor of SkAutoTDelete<T>
116 automatically deletes the pointer it holds (if any). That is, SkAutoTDelete<T>
117 owns the T object that it points to. Like a T*, an SkAutoTDelete<T> may hold
118 either NULL or a pointer to a T object. Also like T*, SkAutoTDelete<T> is
122 The size of a SkAutoTDelete is small: sizeof(SkAutoTDelete<T>) == sizeof(T*)
124 template <typename T> class SkAutoTDelete : SkNoncopyable {
126 SkAutoTDelete(T* obj = NULL) : fObj(obj) {}
127 ~SkAutoTDelete() { SkDELETE(fObj); }
160 void swap(SkAutoTDelete* that) {