Lines Matching refs:item
36 /*! \brief An item that can be stored in a List object.
60 void Add(list_item* item);
328 list_item* item = fFirst;
329 while (item && item->index != index) {
330 item = item->next;
332 return item;
336 /*! \brief Adds the given item to the end of the list.
338 \param item The item to add (may not be NULL)
341 List::Add(list_item* item)
343 // TRACE(("%s: List::Add(%p)\n", kModuleDebugName, item));
344 if (item) {
345 item->next = NULL;
347 fLast->next = item;
348 fLast = item;
350 fFirst = fLast = item;
353 TRACE(("%s: List::Add(): NULL item parameter\n", kModuleDebugName));
363 list_item* item = fFirst;
364 while (item) {
365 list_item* next = item->next;
366 delete item;
367 item = next;
387 list_item* item = fFirst;
389 while (item && item->next) {
390 next = item->next;
391 // dprintf("List::Sort: %ld -> %ld\n", item->index, next->index);
392 if (item->index > next->index) {
397 fLast = item;
401 // item is not fFirst
403 item->next = next->next;
404 next->next = item;
406 // item must be fFirst
408 item->next = next->next;
409 next->next = item;
411 } else if (item->index == next->index) {
415 kModuleDebugName, item->index));
416 item->next = next->next;
418 next = item->next;
421 prev = item;
422 item = next;
428 /*! \brief Returns the first item in the list, or NULL if empty
437 /*! \brief Returns the last item in the list, or NULL if empty