Lines Matching refs:fPtr
35 explicit AutoTMalloc(T* ptr = nullptr) : fPtr(ptr) {} in fPtr() function
38 explicit AutoTMalloc(size_t count) : fPtr(mallocIfCountThrowOnFail(count)) {} in AutoTMalloc()
44 void realloc(size_t count) { fPtr.reset(reallocIfCountThrowOnFail(count)); } in realloc()
48 fPtr.reset(mallocIfCountThrowOnFail(count));
52 T* get() const { return fPtr.get(); } in get()
54 operator T*() { return fPtr.get(); }
56 operator const T*() const { return fPtr.get(); }
58 T& operator[](int index) { return fPtr.get()[index]; }
60 const T& operator[](int index) const { return fPtr.get()[index]; }
67 T* release() { return fPtr.release(); } in release()
73 std::unique_ptr<T, FreeDeleter> fPtr; variable
86 newPtr = (T*)std::realloc(fPtr.release(), count * sizeof(T)); in reallocIfCountThrowOnFail()