Lines Matching refs:fCount

18         fReserve = fCount = 0;  in SkTDArray()
24 fReserve = fCount = 0; in SkTDArray()
29 fReserve = fCount = count; in SkTDArray()
33 fReserve = fCount = 0; in SkTDArray()
35 SkTDArray<T> tmp(src.fArray, src.fCount); in SkTDArray()
44 if (src.fCount > fReserve) {
45 SkTDArray<T> tmp(src.fArray, src.fCount);
48 sk_careful_memcpy(fArray, src.fArray, sizeof(T) * src.fCount);
49 fCount = src.fCount;
56 return a.fCount == b.fCount &&
57 (a.fCount == 0 ||
58 !memcmp(a.fArray, b.fArray, a.fCount * sizeof(T)));
67 SkTSwap(fCount, other.fCount); in swap()
76 fReserve = fCount = 0; in detach()
80 bool isEmpty() const { return fCount == 0; } in isEmpty()
85 int count() const { return fCount; } in count()
97 size_t bytes() const { return fCount * sizeof(T); } in bytes()
101 T* end() { return fArray ? fArray + fCount : NULL; } in end()
102 const T* end() const { return fArray ? fArray + fCount : NULL; } in end()
105 SkASSERT(index < fCount);
109 SkASSERT(index < fCount);
124 fReserve = fCount = 0; in reset()
126 SkASSERT(fReserve == 0 && fCount == 0); in reset()
132 fCount = 0; in rewind()
146 fCount = count; in setCount()
157 memmove(fArray + 1, fArray, (fCount - 1) * sizeof(T)); in prepend()
165 int oldCount = fCount;
189 SkASSERT(index <= fCount);
190 size_t oldCount = fCount;
201 SkASSERT(index + count <= fCount);
202 fCount = fCount - count;
203 memmove(fArray + index, fArray + index + count, sizeof(T) * (fCount - index));
207 SkASSERT(index < fCount); in removeShuffle()
208 int newCount = fCount - 1; in removeShuffle()
209 fCount = newCount; in removeShuffle()
217 const T* stop = fArray + fCount; in find()
228 const T* iter = fArray + fCount; in rfind()
253 if (index >= fCount) { in copyRange()
256 int count = SkMin32(max, fCount - index); in copyRange()
262 this->copyRange(dst, 0, fCount); in copy()
268 const T& top() const { return (*this)[fCount - 1]; } in top()
269 T& top() { return (*this)[fCount - 1]; } in top()
270 void pop(T* elem) { SkASSERT(fCount > 0); if (elem) *elem = (*this)[fCount - 1]; --fCount; } in pop()
271 void pop() { SkASSERT(fCount > 0); --fCount; } in pop()
275 T* stop = fArray + fCount; in deleteAll()
285 T* stop = fArray + fCount; in freeAll()
295 T* stop = fArray + fCount; in unrefAll()
305 T* stop = fArray + fCount; in safeUnrefAll()
326 SkASSERT(fCount <= fReserve); in validate()
331 fReserve = fCount; in shrinkToFit()
338 int fCount; variable
345 this->setCount(fCount + delta); in adjustCount()