Lines Matching refs:index
60 bool AddItem(const item_t &item, int32 index);
62 // bool AddList(list_t *list, int32 index);
66 bool RemoveItem(int32 index);
72 const item_t &ItemAt(int32 index) const;
73 item_t &ItemAt(int32 index);
147 List<ITEM, DEFAULT_ITEM_SUPPLIER>::AddItem(const item_t &item, int32 index)
149 bool result = (index >= 0 && index <= fItemCount
152 _MoveItems(fItems + index, 1, fItemCount - index - 1);
153 new(fItems + index) item_t(item);
179 List<ITEM, DEFAULT_ITEM_SUPPLIER>::AddList(list_t *list, int32 index)
181 bool result = (list && index >= 0 && index <= fItemCount);
186 _MoveItems(fItems + index, count, fItemCount - index - count);
187 memcpy(fItems + index, list->fItems,
201 int32 index = fItemCount;
205 memcpy(fItems + index, list->fItems,
218 int32 index = IndexOf(item);
219 bool result = (index >= 0);
221 RemoveItem(index);
228 List<ITEM, DEFAULT_ITEM_SUPPLIER>::RemoveItem(int32 index)
230 if (index >= 0 && index < fItemCount) {
231 fItems[index].~item_t();
232 _MoveItems(fItems + index + 1, -1, fItemCount - index - 1);
268 List<ITEM, DEFAULT_ITEM_SUPPLIER>::ItemAt(int32 index) const
270 if (index >= 0 && index < fItemCount)
271 return fItems[index];
278 List<ITEM, DEFAULT_ITEM_SUPPLIER>::ItemAt(int32 index)
280 if (index >= 0 && index < fItemCount)
281 return fItems[index];