Lines Matching refs:fCount

18         fReserve = fCount = 0;
27 fReserve = fCount = 0;
38 fReserve = fCount = count;
42 fReserve = fCount = 0;
47 SkTDArray<T> tmp(src.fArray, src.fCount);
56 if (src.fCount > fReserve) {
57 SkTDArray<T> tmp(src.fArray, src.fCount);
60 memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
61 fCount = src.fCount;
68 return a.fCount == b.fCount &&
69 (a.fCount == 0 ||
70 !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T)));
82 SkTSwap(fCount, other.fCount);
91 fReserve = fCount = 0;
96 bool isEmpty() const { return fCount == 0; }
101 int count() const { return fCount; }
113 size_t bytes() const { return fCount * sizeof(T); }
117 T* end() { return fArray ? fArray + fCount : NULL; }
118 const T* end() const { return fArray ? fArray + fCount : NULL; }
121 SkASSERT(index < fCount);
125 SkASSERT(index < fCount);
143 fReserve = fCount = 0;
145 SkASSERT(fReserve == 0 && fCount == 0);
151 fCount = 0;
165 fCount = count;
176 memmove(fArray + 1, fArray, (fCount - 1) * sizeof(T));
184 int oldCount = fCount;
208 SkASSERT(index <= fCount);
209 size_t oldCount = fCount;
220 SkASSERT(index + count <= fCount);
221 fCount = fCount - count;
222 memmove(fArray + index, fArray + index + count, sizeof(T) * (fCount - index));
226 SkASSERT(index < fCount);
227 int newCount = fCount - 1;
228 fCount = newCount;
236 const T* stop = fArray + fCount;
247 const T* iter = fArray + fCount;
272 if (index >= fCount) {
275 int count = SkMin32(max, fCount - index);
281 this->copyRange(dst, 0, fCount);
287 const T& top() const { return (*this)[fCount - 1]; }
288 T& top() { return (*this)[fCount - 1]; }
289 void pop(T* elem) { SkASSERT(fCount > 0); if (elem) *elem = (*this)[fCount - 1]; --fCount; }
290 void pop() { SkASSERT(fCount > 0); --fCount; }
294 T* stop = fArray + fCount;
304 T* stop = fArray + fCount;
314 T* stop = fArray + fCount;
324 T* stop = fArray + fCount;
345 SkASSERT(fCount <= fReserve);
360 int fCount;
367 this->setCount(fCount + delta);
371 * Increase the storage allocation such that it can hold (fCount + extra)
376 * note: does NOT modify fCount