Lines Matching refs:index
242 bool OSArray::setObject(unsigned int index, const OSMetaClassBase *anObject)
247 if ((index > count) || !anObject)
255 if (index != count) {
256 for (i = count; i > index; i--)
259 array[index] = anObject;
290 replaceObject(unsigned int index, const OSMetaClassBase *anObject)
294 if ((index >= count) || !anObject)
298 oldObject = array[index];
299 array[index] = anObject;
305 void OSArray::removeObject(unsigned int index)
310 if (index >= count)
314 oldObject = array[index];
317 for (i = index; i < count; i++)
352 OSObject *OSArray::getObject(unsigned int index) const
354 if (index >= count)
357 return (OSObject *) (const_cast<OSMetaClassBase *>(array[index]));
369 unsigned int index) const
371 while ((index < count) && (array[index] != anObject))
372 index++;
373 if (index >= count)
374 index = (unsigned int)-1;
375 return index;
394 unsigned int index = (*iteratorP)++;
396 if (index < count) {
397 *ret = (OSObject *)(const_cast<OSMetaClassBase *> (array[index]));