Lines Matching refs:aElement
382 PRBool nsVoidArray::InsertElementAt(void* aElement, PRInt32 aIndex)
409 mImpl->mArray[aIndex] = aElement;
474 PRBool nsVoidArray::ReplaceElementAt(void* aElement, PRInt32 aIndex)
493 mImpl->mArray[aIndex] = aElement;
583 PRBool nsVoidArray::RemoveElement(void* aElement)
585 PRInt32 theIndex = IndexOf(aElement);
1265 nsSmallVoidArray::InsertElementAt(void* aElement, PRInt32 aIndex)
1268 NS_ASSERTION(!(PtrBits(aElement) & 0x1),"Attempt to add element with 0x1 bit set to nsSmallVoidArray");
1269 NS_ASSERTION(aElement != nsnull,"Attempt to add a NULL element to an nsSmallVoidArray");
1282 SetSingleChild(aElement);
1289 return vector->InsertElementAt(aElement, aIndex);
1333 nsSmallVoidArray::ReplaceElementAt(void* aElement, PRInt32 aIndex)
1335 NS_ASSERTION(!(PtrBits(aElement) & 0x1),"Attempt to add element with 0x1 bit set to nsSmallVoidArray");
1336 NS_ASSERTION(aElement != nsnull,"Attempt to add a NULL element to an nsSmallVoidArray");
1342 SetSingleChild(aElement);
1351 return vector->ReplaceElementAt(aElement, aIndex);
1358 nsSmallVoidArray::AppendElement(void* aElement)
1360 NS_ASSERTION(!(PtrBits(aElement) & 0x1),"Attempt to add element with 0x1 bit set to nsSmallVoidArray");
1361 NS_ASSERTION(aElement != nsnull,"Attempt to add a NULL element to an nsSmallVoidArray");
1373 SetSingleChild(aElement);
1378 return vector->AppendElement(aElement);
1382 nsSmallVoidArray::RemoveElement(void* aElement)
1386 if (aElement == GetSingleChild())
1396 return vector->RemoveElement(aElement);