Lines Matching refs:index
76 // create the index
77 AttributeIndex *index = NULL;
80 index = new(nothrow) AttributeIndexImpl(fVolume,
84 index = new(nothrow) AttributeIndexImpl(fVolume,
88 index = new(nothrow) AttributeIndexImpl(fVolume,
92 index = new(nothrow) AttributeIndexImpl(fVolume,
96 index = new(nothrow) AttributeIndexImpl(fVolume,
100 index = new(nothrow) AttributeIndexImpl(fVolume,
104 index = new(nothrow) AttributeIndexImpl(fVolume,
111 if (error == B_OK && !index)
113 // add the index
115 if (fIndices.AddItem(index)) {
117 *_index = index;
119 delete index;
138 IndexDirectory::DeleteIndex(Index *index)
141 if (index && !IsSpecialIndex(index)) {
142 int32 i = fIndices.IndexOf(index);
145 delete index;
159 Index *index = fIndices.ItemAt(i);
160 if (!strcmp(index->GetName(), name))
161 return index;
171 Index *index = FindIndex(name);
172 if (index && index->GetType() != type)
173 index = NULL;
174 return index;
182 if (Index *index = FindIndex(name))
183 attrIndex = dynamic_cast<AttributeIndex*>(index);
192 if (Index *index = FindIndex(name, type))
193 attrIndex = dynamic_cast<AttributeIndex*>(index);
199 IndexDirectory::IsSpecialIndex(Index *index) const
201 return (index == fNameIndex || index == fLastModifiedIndex
202 || index == fSizeIndex);