Lines Matching refs:nIndex

93 void ScCollection::AtFree(sal_uInt16 nIndex)  in AtFree()  argument
95 if ((pItems) && (nIndex < nCount)) in AtFree()
97 delete pItems[nIndex]; in AtFree()
99 memmove ( &pItems[nIndex], &pItems[nIndex + 1], (nCount - nIndex) * sizeof(ScDataObject*)); in AtFree()
122 sal_Bool ScCollection::AtInsert(sal_uInt16 nIndex, ScDataObject* pScDataObject) in AtInsert() argument
124 if ((nCount < MAXCOLLECTIONSIZE) && (nIndex <= nCount) && pItems) in AtInsert()
136 if (nCount > nIndex) in AtInsert()
137 memmove(&pItems[nIndex + 1], &pItems[nIndex], (nCount - nIndex) * sizeof(ScDataObject*)); in AtInsert()
138 pItems[nIndex] = pScDataObject; in AtInsert()
154 ScDataObject* ScCollection::At(sal_uInt16 nIndex) const in At()
156 if (nIndex < nCount) in At()
157 return pItems[nIndex]; in At()
166 sal_uInt16 nIndex = 0xffff; in IndexOf() local
167 for (sal_uInt16 i = 0; ((i < nCount) && (nIndex == 0xffff)); i++) in IndexOf()
169 if (pItems[i] == pScDataObject) nIndex = i; in IndexOf()
171 return nIndex; in IndexOf()
211 sal_uInt16 nIndex; in IndexOf() local
212 if (Search(pScDataObject, nIndex)) in IndexOf()
213 return nIndex; in IndexOf()
226 short nIndex; in Search() local
230 nIndex = (nLo + nHi) / 2; in Search()
231 nCompare = Compare(pItems[nIndex], pScDataObject); in Search()
233 nLo = nIndex + 1; in Search()
236 nHi = nIndex - 1; in Search()
240 nLo = nIndex; in Search()
252 sal_uInt16 nIndex; in Insert() local
253 sal_Bool bFound = Search(pScDataObject, nIndex); in Insert()
257 return AtInsert(nIndex, pScDataObject); in Insert()
262 return AtInsert(nIndex, pScDataObject); in Insert()
267 sal_Bool ScSortedCollection::InsertPos(ScDataObject* pScDataObject, sal_uInt16& nIndex) in InsertPos() argument
269 sal_Bool bFound = Search(pScDataObject, nIndex); in InsertPos()
273 return AtInsert(nIndex, pScDataObject); in InsertPos()
278 return AtInsert(nIndex, pScDataObject); in InsertPos()
370 TypedStrData* TypedScStrCollection::operator[]( const sal_uInt16 nIndex) const in operator []()
372 return (TypedStrData*)At(nIndex); in operator []()