Lines Matching refs:itemsPerPage
56 malloc(sizeof(Value) * ValueInternalArray::itemsPerPage));
119 BatchAllocator<Value, ValueInternalArray::itemsPerPage> pagesAllocator_;
148 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
153 if (it.currentItemIndex_ == itemsPerPage) {
165 it.currentItemIndex_ = itemsPerPage - 1;
178 it.array_ && (it.currentPageIndex_ - it.array_->pages_) * itemsPerPage +
194 it.currentItemIndex_ = index % itemsPerPage;
195 it.currentPageIndex_ = pages_ + index / itemsPerPage;
206 PageIndex minNewPages = other.size_ / itemsPerPage;
214 if (index % itemsPerPage == 0) {
215 PageIndex pageIndex = index / itemsPerPage;
239 PageIndex lastPageIndex = size_ / itemsPerPage;
275 PageIndex pageIndex = (newSize + itemsPerPage - 1) / itemsPerPage;
276 PageIndex lastPageIndex = size_ / itemsPerPage;
286 if (index >= pageCount_ * itemsPerPage) {
287 PageIndex minNewPages = (index + 1) / itemsPerPage;
294 ArrayIndex nextPageIndex = (size_ % itemsPerPage) != 0
295 ? size_ - (size_ % itemsPerPage) + itemsPerPage
298 PageIndex pageIndex = nextPageIndex / itemsPerPage;
299 PageIndex pageToAllocate = (index - nextPageIndex) / itemsPerPage + 1;
319 return pages_[index / itemsPerPage][index % itemsPerPage];
325 return &(pages_[index / itemsPerPage][index % itemsPerPage]);
342 itemsPerPage +
352 int diff = pages_[index / itemsPerPage][index % itemsPerPage].compare(
353 other.pages_[index / itemsPerPage][index % itemsPerPage]);