39 #ifndef sbCOMArray_h__
40 #define sbCOMArray_h__
42 #include "nsVoidArray.h"
43 #include "nsISupports.h"
59 return mArray.IndexOf(aObject);
65 return mArray.EnumerateForwards(aFunc, aData);
69 return mArray.EnumerateBackwards(aFunc, aData);
72 void Sort(nsVoidArrayComparatorFunc aFunc,
void*
aData) {
73 mArray.Sort(aFunc, aData);
96 return mArray.Count();
100 return static_cast<nsISupports*
>(mArray.FastElementAt(aIndex));
104 return static_cast<nsISupports*
>(mArray.SafeElementAt(aIndex));
114 return aCapacity > 0 ? mArray.SizeTo(static_cast<PRInt32>(aCapacity))
PRBool AppendObjects(const sbCOMArray_base &aObjects)
nsISupports * ObjectAt(PRInt32 aIndex) const
PRBool RemoveObject(nsISupports *aObject)
PRBool EnumerateBackwards(nsVoidArrayEnumFunc aFunc, void *aData)
PRBool InsertObjectAt(nsISupports *aObject, PRInt32 aIndex)
sbCOMArray_base(PRInt32 aCount)
PRBool RemoveObjectAt(PRInt32 aIndex)
PRBool SetCapacity(PRUint32 aCapacity)
PRInt32 IndexOf(nsISupports *aObject) const
void Sort(nsVoidArrayComparatorFunc aFunc, void *aData)
PRBool InsertObjectsAt(const sbCOMArray_base &aObjects, PRInt32 aIndex)
PRBool ReplaceObjectAt(nsISupports *aObject, PRInt32 aIndex)
PRBool EnumerateForwards(nsVoidArrayEnumFunc aFunc, void *aData)
nsISupports * operator[](PRInt32 aIndex) const
PRBool AppendObject(nsISupports *aObject)
PRInt32 IndexOfObject(nsISupports *aObject) const
nsISupports * SafeObjectAt(PRInt32 aIndex) const
restoreHistoryPrecursor aCount
_updateTextAndScrollDataForFrame aData