Lines Matching defs:index
232 bool OSArray::setObject(unsigned int index, const OSMetaClassBase *anObject)
237 if ((index > count) || !anObject)
245 if (index != count) {
246 for (i = count; i > index; i--)
249 array[index] = anObject;
280 replaceObject(unsigned int index, const OSMetaClassBase *anObject)
284 if ((index >= count) || !anObject)
288 oldObject = array[index];
289 array[index] = anObject;
295 void OSArray::removeObject(unsigned int index)
300 if (index >= count)
304 oldObject = array[index];
307 for (i = index; i < count; i++)
342 OSObject *OSArray::getObject(unsigned int index) const
344 if (index >= count)
347 return (OSObject *) (const_cast<OSMetaClassBase *>(array[index]));
359 unsigned int index) const
361 while ((index < count) && (array[index] != anObject))
362 index++;
363 if (index >= count)
364 index = (unsigned int)-1;
365 return index;
384 unsigned int index = (*iteratorP)++;
386 if (index < count) {
387 *ret = (OSObject *)(const_cast<OSMetaClassBase *> (array[index]));