Lines Matching refs:fPtr
26 SkTLazy() : fPtr(NULL) {}
28 explicit SkTLazy(const T* src) : fPtr(NULL) {
30 fPtr = new (fStorage) T(*src);
34 SkTLazy(const SkTLazy<T>& src) : fPtr(NULL) {
36 fPtr = new (fStorage) T(*src->get());
38 fPtr = NULL;
44 fPtr->~T();
56 fPtr->~T();
58 fPtr = new (SkTCast<T*>(fStorage)) T;
59 return fPtr;
70 *fPtr = src;
72 fPtr = new (SkTCast<T*>(fStorage)) T(src);
74 return fPtr;
81 bool isValid() const { return NULL != fPtr; }
87 T* get() const { SkASSERT(this->isValid()); return fPtr; }
93 T* getMaybeNull() const { return fPtr; }
98 T* fPtr; // NULL or fStorage
105 lazy->fPtr = reinterpret_cast<T*>(lazy->fStorage);
106 return lazy->fPtr;