Lines Matching refs:TBase
13 template<typename TBase, typename TAlign> class GrTRecorder;
45 template<typename TBase, typename TAlign> class GrTRecorder : SkNoncopyable {
68 TBase& back() { in back()
70 return *reinterpret_cast<TBase*>(fLastItem); in back()
170 template<typename TBase, typename TAlign>
171 void GrTRecorder<TBase, TAlign>::pop_back() { in pop_back()
176 reinterpret_cast<TBase*>(fLastItem)->~TBase(); in pop_back()
195 template<typename TBase, typename TAlign>
197 void* GrTRecorder<TBase, TAlign>::alloc_back(int dataLength) { in alloc_back()
250 template<typename TBase, typename TAlign>
251 class GrTRecorder<TBase, TAlign>::Iter {
266 fItem = reinterpret_cast<TBase*>(&(*fBlock)[fPosition + length_of<Header>::kValue]); in next()
271 TBase* get() const { in get()
276 TBase* operator->() const { return this->get(); }
281 TBase* fItem;
294 template<typename TBase, typename TAlign>
295 class GrTRecorder<TBase, TAlign>::ReverseIter {
320 fItem = reinterpret_cast<TBase*>(&(*fBlock)[fPosition + length_of<Header>::kValue]); in previous()
324 TBase* get() const { return fItem; } in get()
325 TBase* operator->() const { return this->get(); }
330 TBase* fItem;
333 template<typename TBase, typename TAlign>
334 void GrTRecorder<TBase, TAlign>::reset() { in reset()
337 iter->~TBase(); in reset()
363 template <typename TBase, typename TAlign>
364 GrTRecorderAllocWrapper(const GrTRecorder<TBase, TAlign>&, int sizeOfData) in GrTRecorderAllocWrapper()
365 : fDataLength(GrTRecorder<TBase, TAlign>::LengthOf(sizeOfData)) {} in GrTRecorderAllocWrapper()
370 template <typename TBase, typename TAlign, typename TItem>
371 void* operator new(size_t size, GrTRecorder<TBase, TAlign>& recorder, in new() argument
377 template <typename TBase, typename TAlign, typename TItem>
378 void operator delete(void*, GrTRecorder<TBase, TAlign>&, const GrTRecorderAllocWrapper<TItem>&) { in delete() argument