Lines Matching refs:iterator
66 // init a directory iterator
67 VirtualDirIterator iterator;
68 iterator.SetDirectory(fRootNode, true);
73 while (iterator.GetCurrentEntry(&name, &node)) {
74 iterator.NextEntry();
90 // uninit the directory iterator
91 iterator.SetDirectory(NULL);
175 // init a directory iterator
177 VirtualDirIterator iterator;
178 iterator.SetDirectory(fRootNode, true);
183 while (iterator.GetCurrentEntry(&name, &node)) {
184 iterator.NextEntry();
194 // uninit the directory iterator
195 iterator.SetDirectory(NULL);
231 // create a query iterator and add it to the query manager
232 ServerQueryIterator* iterator = new(std::nothrow) ServerQueryIterator(this);
233 if (!iterator)
236 status_t error = queryManager->AddIterator(iterator);
238 delete iterator;
241 QueryIteratorPutter iteratorPutter(queryManager, iterator);
260 iterator->SetRemoteCookie(reply->cookie);
261 *_iterator = iterator;
270 ServerQueryIterator* iterator
273 int32 cookie = iterator->GetRemoteCookie();
292 delete iterator;
307 ServerQueryIterator* iterator
313 // if the iterator hasn't cached any more share volume IDs, we need to
315 if (!iterator->HasNextShareVolumeID()) {
318 request.cookie = iterator->GetRemoteCookie();
336 // update the iterator
337 error = iterator->SetEntry(reply->clientVolumeIDs.GetElements(),
345 int32 volumeID = iterator->NextShareVolumeID();
351 return shareVolume->GetQueryEntry(iterator->GetEntryInfo(),
352 iterator->GetDirectoryInfo(), buffer, bufferSize, countRead);