Lines Matching refs:index
79 // create the index
80 AttributeIndex *index = NULL;
83 index = new(nothrow) AttributeIndexImpl(fVolume,
87 index = new(nothrow) AttributeIndexImpl(fVolume,
91 index = new(nothrow) AttributeIndexImpl(fVolume,
95 index = new(nothrow) AttributeIndexImpl(fVolume,
99 index = new(nothrow) AttributeIndexImpl(fVolume,
103 index = new(nothrow) AttributeIndexImpl(fVolume,
107 index = new(nothrow) AttributeIndexImpl(fVolume,
114 if (error == B_OK && !index)
116 // add the index
118 if (fIndices.AddItem(index)) {
120 *_index = index;
122 delete index;
141 IndexDirectory::DeleteIndex(Index *index)
144 if (index && !IsSpecialIndex(index)) {
145 int32 i = fIndices.IndexOf(index);
148 delete index;
162 Index *index = fIndices.ItemAt(i);
163 if (!strcmp(index->GetName(), name))
164 return index;
174 Index *index = FindIndex(name);
175 if (index && index->GetType() != type)
176 index = NULL;
177 return index;
185 if (Index *index = FindIndex(name))
186 attrIndex = dynamic_cast<AttributeIndex*>(index);
195 if (Index *index = FindIndex(name, type))
196 attrIndex = dynamic_cast<AttributeIndex*>(index);
202 IndexDirectory::IsSpecialIndex(Index *index) const
204 return (index == fNameIndex || index == fLastModifiedIndex
205 || index == fSizeIndex);