Lines Matching refs:item
140 ssize_t VectorImpl::insertAt(const void* item, size_t index, size_t numItems) in insertAt() argument
146 if (item) { in insertAt()
147 _do_splat(where, item, numItems); in insertAt()
176 void* item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort() local
178 if (cmp(curr, item, state) > 0) { in sort()
186 item = reinterpret_cast<char*>(array) + mItemSize*(i); in sort()
192 _do_copy(temp, item, 1); in sort()
229 void VectorImpl::push(const void* item) in push() argument
231 insertAt(item, size()); in push()
239 ssize_t VectorImpl::add(const void* item) in add() argument
241 return insertAt(item, size()); in add()
258 void* item = editItemLocation(index); in replaceAt() local
259 if (item != prototype) { in replaceAt()
260 if (item == 0) in replaceAt()
262 _do_destroy(item, 1); in replaceAt()
264 _do_construct(item, 1); in replaceAt()
266 _do_copy(item, prototype, 1); in replaceAt()
495 void VectorImpl::_do_splat(void* dest, const void* item, size_t num) const { in _do_splat() argument
496 do_splat(dest, item, num); in _do_splat()
528 ssize_t SortedVectorImpl::indexOf(const void* item) const in indexOf()
530 return _indexOrderOf(item); in indexOf()
533 size_t SortedVectorImpl::orderOf(const void* item) const in orderOf()
536 _indexOrderOf(item, &o); in orderOf()
540 ssize_t SortedVectorImpl::_indexOrderOf(const void* item, size_t* order) const in _indexOrderOf() argument
552 const int c = do_compare(curr, item); in _indexOrderOf()
566 ssize_t SortedVectorImpl::add(const void* item) in add() argument
569 ssize_t index = _indexOrderOf(item, &order); in add()
571 index = VectorImpl::insertAt(item, order, 1); in add()
573 index = VectorImpl::replaceAt(item, index); in add()
613 ssize_t SortedVectorImpl::remove(const void* item) in remove() argument
615 ssize_t i = indexOf(item); in remove()