Lines Matching refs:mCount

144   mImpl->mCount = aCount;
171 mImpl->mCount = 0; // nsAutoVoidArray
180 if (aSize < mImpl->mCount)
182 // XXX Note: we could also just resize to mCount
208 SetArray(newImpl,aSize,newImpl->mCount,PR_TRUE);
240 mImpl->mCount * sizeof(mImpl->mArray[0]));
243 SetArray(newImpl,aSize,mImpl ? mImpl->mCount : 0,PR_TRUE);
323 mImpl->mCount = otherCount;
329 mImpl->mCount = otherCount;
337 if (mImpl->mCount > mMaxCount &&
338 mImpl->mCount < (PRInt32)(sizeof(MaxElements)/sizeof(MaxElements[0])))
340 MaxElements[mImpl->mCount]++;
342 mMaxCount = mImpl->mCount;
369 void** end = ap + mImpl->mCount;
410 mImpl->mCount++;
413 if (mImpl->mCount > mMaxCount &&
414 mImpl->mCount < (PRInt32)(sizeof(MaxElements)/sizeof(MaxElements[0])))
416 MaxElements[mImpl->mCount]++;
418 mMaxCount = mImpl->mCount;
458 mImpl->mCount++;
462 if (mImpl->mCount > mMaxCount &&
463 mImpl->mCount < (PRInt32)(sizeof(MaxElements)/sizeof(MaxElements[0])))
465 MaxElements[mImpl->mCount]++;
467 mMaxCount = mImpl->mCount;
494 if (aIndex >= mImpl->mCount)
499 if (aIndex > mImpl->mCount) // note: not >=
501 // For example, if mCount is 2, and we do a ReplaceElementAt for
504 memset(&mImpl->mArray[mImpl->mCount], 0,
505 (aIndex - mImpl->mCount) * sizeof(mImpl->mArray[0]));
508 mImpl->mCount = aIndex + 1;
511 if (mImpl->mCount > mMaxCount &&
512 mImpl->mCount < (PRInt32)(sizeof(MaxElements)/sizeof(MaxElements[0])))
514 MaxElements[mImpl->mCount]++;
516 mMaxCount = mImpl->mCount;
579 mImpl->mCount -= aCount;
596 mImpl->mCount = 0;
631 if (mImpl && mImpl->mCount > 1)
634 NS_QuickSort(mImpl->mArray, mImpl->mCount, sizeof(mImpl->mArray[0]),
646 while (running && (++index < mImpl->mCount))
776 void** end = ap + mImpl->mCount;
874 while (running && (++index < mImpl->mCount))
981 void** end = ap + mImpl->mCount;
1001 void** end = ap + mImpl->mCount;
1120 while (running && (++index < mImpl->mCount))