Lines Matching refs:index

48 	bool AddItem(const item_t &item, int32 index);
50 // bool AddList(list_t *list, int32 index);
54 bool RemoveItem(int32 index);
56 bool ReplaceItem(int32 index, const item_t &item);
64 const item_t &ItemAt(int32 index) const;
65 item_t &ItemAt(int32 index);
142 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::AddItem(const item_t &item, int32 index)
144 bool result = (index >= 0 && index <= fItemCount
147 _MoveItems(fItems + index, 1, fItemCount - index - 1);
148 new(fItems + index) item_t(item);
174 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::AddList(list_t *list, int32 index)
176 bool result = (list && index >= 0 && index <= fItemCount);
181 _MoveItems(fItems + index, count, fItemCount - index - count);
182 memcpy(fItems + index, list->fItems,
196 int32 index = fItemCount;
200 memcpy(fItems + index, list->fItems,
213 int32 index = IndexOf(item);
214 bool result = (index >= 0);
216 RemoveItem(index);
223 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::RemoveItem(int32 index)
225 if (index >= 0 && index < fItemCount) {
226 fItems[index].~item_t();
227 _MoveItems(fItems + index + 1, -1, fItemCount - index - 1);
237 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::ReplaceItem(int32 index, const item_t &item)
239 if (index >= 0 && index < fItemCount) {
240 fItems[index] = item;
296 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::ItemAt(int32 index) const
298 if (index >= 0 && index < fItemCount)
299 return fItems[index];
306 TemplateList<ITEM, DEFAULT_ITEM_SUPPLIER>::ItemAt(int32 index)
308 if (index >= 0 && index < fItemCount)
309 return fItems[index];