Lines Matching refs:_index
67 self._index = None # maps keys to (pos, siz) pairs
94 self._index = {}
107 self._index[key] = pos_and_siz_pair
116 if self._index is None or not self._modified:
131 for key, pos_and_siz_pair in self._index.items():
140 if self._index is None:
147 pos, siz = self._index[key] # may raise KeyError
181 self._index[key] = pos_and_siz_pair
199 if key not in self._index:
204 pos, siz = self._index[key]
208 self._index[key] = self._setval(pos, val)
213 self._index[key] = self._addval(val)
231 del self._index[key]
240 return list(self._index)
246 return [(key, self[key]) for key in self._index.keys()]
252 return key in self._index
254 if self._index is None:
261 return iter(self._index)
268 return len(self._index)
276 self._index = self._datfile = self._dirfile = self._bakfile = None