Lines Matching refs:index
231 bool OSArray::setObject(unsigned int index, const OSMetaClassBase *anObject)
236 if ((index > count) || !anObject)
244 if (index != count) {
245 for (i = count; i > index; i--)
248 array[index] = anObject;
279 replaceObject(unsigned int index, const OSMetaClassBase *anObject)
283 if ((index >= count) || !anObject)
287 oldObject = array[index];
288 array[index] = anObject;
294 void OSArray::removeObject(unsigned int index)
299 if (index >= count)
303 oldObject = array[index];
306 for (i = index; i < count; i++)
341 OSObject *OSArray::getObject(unsigned int index) const
343 if (index >= count)
346 return (OSObject *) (const_cast<OSMetaClassBase *>(array[index]));
358 unsigned int index) const
360 while ((index < count) && (array[index] != anObject))
361 index++;
362 if (index >= count)
363 index = (unsigned int)-1;
364 return index;
383 unsigned int index = (*iteratorP)++;
385 if (index < count) {
386 *ret = (OSObject *)(const_cast<OSMetaClassBase *> (array[index]));