/haiku/src/add-ons/kernel/file_systems/netfs/client/ |
H A D | QueryManager.cpp | 64 QueryManager::AddIterator(QueryIterator* iterator) in AddIterator() argument 66 if (!iterator || !iterator->GetVolume()) in AddIterator() 72 vnode_id nodeID = iterator->GetVolume()->GetRootID(); in AddIterator() 89 iteratorList->Insert(iterator); in AddIterator() 92 iterator->GetVolume()->AcquireReference(); in AddIterator() 99 QueryManager::AddSubIterator(HierarchicalQueryIterator* iterator, in AddSubIterator() argument 102 if (!iterator || !subIterator) in AddSubIterator() 109 iterator->AddSubIterator(subIterator); in AddSubIterator() 116 QueryManager::RemoveSubIterator(HierarchicalQueryIterator* iterator, in RemoveSubIterator() argument 119 if (!iterator || !subIterator) in RemoveSubIterator() [all …]
|
H A D | QueryManager.h | 20 status_t AddIterator(QueryIterator* iterator); 23 HierarchicalQueryIterator* iterator, 27 HierarchicalQueryIterator* iterator, 33 HierarchicalQueryIterator* iterator); 35 HierarchicalQueryIterator* iterator, 39 HierarchicalQueryIterator* iterator); 43 void PutIterator(QueryIterator* iterator); 58 QueryIteratorPutter(QueryManager* manager, QueryIterator* iterator) in QueryIteratorPutter() argument 60 fIterator(iterator) in QueryIteratorPutter()
|
H A D | ServerVolume.cpp | 67 VirtualDirIterator iterator; in SetServerInfo() local 68 iterator.SetDirectory(fRootNode, true); in SetServerInfo() 73 while (iterator.GetCurrentEntry(&name, &node)) { in SetServerInfo() 74 iterator.NextEntry(); in SetServerInfo() 91 iterator.SetDirectory(NULL); in SetServerInfo() 177 VirtualDirIterator iterator; in HandleEvent() local 178 iterator.SetDirectory(fRootNode, true); in HandleEvent() 183 while (iterator.GetCurrentEntry(&name, &node)) { in HandleEvent() 184 iterator.NextEntry(); in HandleEvent() 195 iterator.SetDirectory(NULL); in HandleEvent() [all …]
|
/haiku/src/kits/app/ |
H A D | TokenSpace.cpp | 88 TokenMap::iterator iterator = fTokenMap.find(token); in RemoveToken() local 89 if (iterator == fTokenMap.end()) in RemoveToken() 92 fTokenMap.erase(iterator); in RemoveToken() 105 TokenMap::const_iterator iterator = fTokenMap.find(token); in CheckToken() local 106 if (iterator != fTokenMap.end() && iterator->second.type == type) in CheckToken() 121 TokenMap::const_iterator iterator = fTokenMap.find(token); in GetToken() local 122 if (iterator == fTokenMap.end() || iterator->second.type != type) in GetToken() 125 *_object = iterator->second.object; in GetToken() 138 TokenMap::iterator iterator = fTokenMap.find(token); in SetHandlerTarget() local 139 if (iterator == fTokenMap.end() || iterator->second.type != B_HANDLER_TOKEN) in SetHandlerTarget() [all …]
|
/haiku/src/servers/net/ |
H A D | Services.cpp | 82 ConnectionList::const_iterator iterator = connections.begin(); in ~service() local 83 for (; iterator != connections.end(); iterator++) { in ~service() 84 const service_connection& connection = *iterator; in ~service() 116 ConnectionList::const_iterator iterator = connections.begin(); in operator ==() local 117 for (; iterator != connections.end(); iterator++) { in operator ==() 118 const service_connection& connection = *iterator; in operator ==() 253 ConnectionList::iterator iterator = service.connections.begin(); in _StartService() local 254 for (; iterator != service.connections.end(); iterator++) { in _StartService() 255 service_connection& connection = *iterator; in _StartService() 284 iterator = service.connections.begin(); in _StartService() [all …]
|
/haiku/src/add-ons/kernel/file_systems/ramfs/ |
H A D | LastModifiedIndex.cpp | 128 for (Iterator *iterator = fIterators->First(); in ~LastModifiedIndex() local 129 iterator; in ~LastModifiedIndex() 130 iterator = fIterators->GetNext(iterator)) { in ~LastModifiedIndex() 131 iterator->SetTo(NULL, 0); in ~LastModifiedIndex() 157 for (Iterator *iterator = fIterators->First(); in Changed() local 158 iterator; in Changed() 159 iterator = fIterators->GetNext(iterator)) { in Changed() 160 if (iterator->GetCurrentNode() == node) in Changed() 161 iterator->NodeRemoved(node); in Changed() 197 Iterator *iterator = new(nothrow) Iterator; in InternalGetIterator() local [all …]
|
H A D | SizeIndex.cpp | 126 for (Iterator *iterator = fIterators->First(); in ~SizeIndex() local 127 iterator; in ~SizeIndex() 128 iterator = fIterators->GetNext(iterator)) { in ~SizeIndex() 129 iterator->SetTo(NULL, 0); in ~SizeIndex() 155 for (Iterator *iterator = fIterators->First(); in Changed() local 156 iterator; in Changed() 157 iterator = fIterators->GetNext(iterator)) { in Changed() 158 if (iterator->GetCurrentNode() == node) in Changed() 159 iterator->NodeRemoved(node); in Changed() 196 Iterator *iterator = new(nothrow) Iterator; in InternalGetIterator() local [all …]
|
H A D | Entry.cpp | 83 Entry::AttachEntryIterator(EntryIterator *iterator) in AttachEntryIterator() argument 85 if (iterator && iterator->GetCurrent() == this && !iterator->IsSuspended()) in AttachEntryIterator() 86 fIterators.Insert(iterator); in AttachEntryIterator() 91 Entry::DetachEntryIterator(EntryIterator *iterator) in DetachEntryIterator() argument 93 if (iterator && iterator->GetCurrent() == this && iterator->IsSuspended()) in DetachEntryIterator() 94 fIterators.Remove(iterator); in DetachEntryIterator()
|
/haiku/src/tools/fs_shell/ |
H A D | hash.cpp | 154 hash_remove_current(struct hash_table *table, struct hash_iterator *iterator) in hash_remove_current() argument 156 uint32_t index = iterator->bucket; in hash_remove_current() 159 if (iterator->current == NULL) in hash_remove_current() 166 if (element == iterator->current) { in hash_remove_current() 167 iterator->current = lastElement; in hash_remove_current() 239 hash_open(struct hash_table *table, struct hash_iterator *iterator) in hash_open() argument 241 if (iterator == NULL) { in hash_open() 242 iterator = (struct hash_iterator *)malloc(sizeof(struct hash_iterator)); in hash_open() 243 if (iterator == NULL) in hash_open() 247 hash_rewind(table, iterator); in hash_open() [all …]
|
/haiku/src/servers/media/ |
H A D | AppManager.cpp | 123 AppMap::iterator found = fMap.find(team); in SendMessage() 140 AppMap::iterator iterator = fMap.begin(); in Dump() local 141 for (; iterator != fMap.end(); iterator++) { in Dump() 143 be_roster->GetRunningAppInfo(iterator->first, &info); in Dump() 145 iterator->first, info.ref.name, in Dump() 146 iterator->second.IsValid() ? "" : "NOT "); in Dump() 158 AppMap::iterator iterator = fMap.begin(); in NotifyRosters() local 159 for (; iterator != fMap.end(); iterator++) in NotifyRosters() 160 iterator->second.SendMessage(MEDIA_SERVER_ALIVE); in NotifyRosters()
|
H A D | NodeManager.cpp | 170 NodeMap::iterator found = fNodeMap.find(node.node_id); in RegisterNode() 206 NodeMap::iterator found = fNodeMap.find(id); in UnregisterNode() 251 NodeMap::iterator found = fNodeMap.find(id); in ReleaseNodeReference() 260 TeamCountMap::iterator teamRef = node.team_ref_count.find(team); in ReleaseNodeReference() 318 NodeMap::iterator found = fNodeMap.find(id); in ReleaseNodeAll() 351 NodeMap::iterator found = fNodeMap.find(id); in SetNodeCreator() 386 NodeMap::iterator found = fNodeMap.find(id); in GetCloneForID() 469 NodeMap::iterator found = fNodeMap.find(node.node); in PublishInputs() 497 NodeMap::iterator found = fNodeMap.find(node.node); in PublishOutputs() 524 NodeMap::iterator iterator = fNodeMap.begin(); in FindNodeID() local [all …]
|
H A D | MediaFilesManager.cpp | 80 TypeMap::iterator iterator = fMap.begin(); in SaveState() local 81 for (; iterator != fMap.end(); iterator++) { in SaveState() 82 const BString& type = iterator->first; in SaveState() 83 ItemMap& itemMap = iterator->second; in SaveState() 90 ItemMap::iterator itemIterator = itemMap.begin(); in SaveState() 129 TypeMap::iterator iterator = fMap.begin(); in Dump() local 130 for (; iterator != fMap.end(); iterator++) { in Dump() 131 const BString& type = iterator->first; in Dump() 132 ItemMap& itemMap = iterator->second; in Dump() 134 ItemMap::iterator fileIterator = itemMap.begin(); in Dump() [all …]
|
/haiku/src/system/boot/loader/ |
H A D | RootFileSystem.cpp | 34 EntryIterator *iterator = new (std::nothrow) EntryIterator(&fList); in Open() local 35 if (iterator == NULL) in Open() 38 *_cookie = iterator; in Open() 55 EntryIterator iterator = fLinks.GetIterator(); in LookupDontTraverse() local 60 while ((entry = iterator.Next()) != NULL) { in LookupDontTraverse() 69 iterator = fList.GetIterator(); in LookupDontTraverse() 71 while ((entry = iterator.Next()) != NULL) { in LookupDontTraverse() 89 EntryIterator *iterator = (EntryIterator *)_cookie; in GetNextEntry() local 92 entry = iterator->Next(); in GetNextEntry() 103 EntryIterator *iterator = (EntryIterator *)_cookie; in GetNextNode() local [all …]
|
/haiku/src/add-ons/kernel/file_systems/netfs/server/ |
H A D | Directory.cpp | 230 while (DirIterator* iterator = fIterators.First()) in ~Directory() local 231 iterator->SetDirectory(NULL); in ~Directory() 262 for (DirIterator* iterator = fIterators.First(); in RemoveEntry() local 263 iterator; in RemoveEntry() 264 iterator = fIterators.GetNext(iterator)) { in RemoveEntry() 265 if (iterator->GetCurrentEntry() == entry) in RemoveEntry() 266 iterator->NextEntry(); in RemoveEntry() 308 DirIterator* iterator; in OpenDir() local 310 iterator = new(std::nothrow) CachedDirIterator; in OpenDir() 312 iterator = new(std::nothrow) UncachedDirIterator; in OpenDir() [all …]
|
/haiku/src/system/kernel/ |
H A D | module.cpp | 831 iterator_pop_path_from_stack(module_iterator* iterator, uint32* _baseLength) in iterator_pop_path_from_stack() argument 833 if (iterator->stack_current <= 0) in iterator_pop_path_from_stack() 837 *_baseLength = iterator->stack[iterator->stack_current - 1].base_length; in iterator_pop_path_from_stack() 839 return iterator->stack[--iterator->stack_current].name; in iterator_pop_path_from_stack() 844 iterator_push_path_on_stack(module_iterator* iterator, const char* path, in iterator_push_path_on_stack() argument 847 if (iterator->stack_current + 1 > iterator->stack_size) { in iterator_push_path_on_stack() 849 module_path* stack = (module_path*)realloc(iterator->stack, in iterator_push_path_on_stack() 850 (iterator->stack_size + 8) * sizeof(module_path)); in iterator_push_path_on_stack() 854 iterator->stack = stack; in iterator_push_path_on_stack() 855 iterator->stack_size += 8; in iterator_push_path_on_stack() [all …]
|
/haiku/src/add-ons/kernel/file_systems/packagefs/indices/ |
H A D | LastModifiedIndex.cpp | 220 Iterator* iterator = it.Next();) { in NodeChanged() 221 iterator->NodeChangeBegin(node); in NodeChanged() 235 Iterator* iterator = it.Next();) { in NodeChanged() 236 iterator->NodeChangeEnd(node); in NodeChanged() 249 Iterator* iterator = new(std::nothrow) Iterator; in InternalGetIterator() local 250 if (iterator != NULL) { in InternalGetIterator() 251 if (!iterator->SetTo(this, 0, true)) { in InternalGetIterator() 252 delete iterator; in InternalGetIterator() 253 iterator = NULL; in InternalGetIterator() 256 return iterator; in InternalGetIterator() [all …]
|
H A D | SizeIndex.cpp | 218 Iterator* iterator = it.Next();) { in NodeChanged() 219 iterator->NodeChangeBegin(node); in NodeChanged() 233 Iterator* iterator = it.Next();) { in NodeChanged() 234 iterator->NodeChangeEnd(node); in NodeChanged() 247 Iterator* iterator = new(std::nothrow) Iterator; in InternalGetIterator() local 248 if (iterator != NULL) { in InternalGetIterator() 249 if (!iterator->SetTo(this, 0, true)) { in InternalGetIterator() 250 delete iterator; in InternalGetIterator() 251 iterator = NULL; in InternalGetIterator() 254 return iterator; in InternalGetIterator() [all …]
|
/haiku/src/system/boot/loader/file_systems/amiga_ffs/ |
H A D | Directory.cpp | 63 HashIterator *iterator = new(nothrow) HashIterator(fVolume.Device(), fNode); in Open() local 64 if (iterator == NULL) in Open() 67 if (iterator->InitCheck() != B_OK) { in Open() 68 delete iterator; in Open() 72 *_cookie = (void *)iterator; in Open() 95 HashIterator iterator(fVolume.Device(), fNode); in LookupDontTraverse() local 96 if (iterator.InitCheck() != B_OK) in LookupDontTraverse() 99 iterator.Goto(fNode.HashIndexFor(fVolume.Type(), name)); in LookupDontTraverse() 103 while ((node = iterator.GetNext(block)) != NULL) { in LookupDontTraverse() 122 HashIterator *iterator = (HashIterator *)cookie; in GetNextEntry() local [all …]
|
/haiku/src/add-ons/kernel/network/ppp/ppp_manager/ |
H A D | KPPPManager.cpp | 129 DoublyLinkedList<entry_private>::Iterator iterator in DeleteInterface() local 131 while (iterator.HasNext()) { in DeleteInterface() 132 entry_private* pentry = iterator.Next(); in DeleteInterface() 150 DoublyLinkedList<entry_private>::Iterator iterator in RemoveInterface() local 152 while (iterator.HasNext()) { in RemoveInterface() 153 entry_private* pentry = iterator.Next(); in RemoveInterface() 171 DoublyLinkedList<entry_private>::Iterator iterator in RegisterInterface() local 173 while (iterator.HasNext()) { in RegisterInterface() 174 entry_private* pentry = iterator.Next(); in RegisterInterface() 200 DoublyLinkedList<entry_private>::Iterator iterator in GetInterface() local [all …]
|
/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | InodeIdMap.cpp | 18 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); in AddName() local 19 if (iterator.HasCurrent()) { in AddName() 20 if (fileInfo.fHandle == iterator.Current().fHandle) { in AddName() 21 return iterator.CurrentValuePointer()->fNames->AddName(parent, in AddName() 48 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); in RemoveName() local 49 if (!iterator.HasCurrent()) in RemoveName() 52 FileInfo* fileInfo = iterator.CurrentValuePointer(); in RemoveName() 72 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); in GetFileInfo() local 73 if (!iterator.HasCurrent()) in GetFileInfo() 76 *fileInfo = iterator.Current(); in GetFileInfo()
|
/haiku/headers/cpp/ |
H A D | stl_list.h | 51 typedef _List_iterator<_Tp,_Tp&,_Tp*> iterator; typedef 67 _List_iterator(const iterator& __x) : _M_node(__x._M_node) {} in _List_iterator() 266 typedef _List_iterator<_Tp,_Tp&,_Tp*> iterator; typedef 271 typedef reverse_iterator<iterator> reverse_iterator; 276 typedef reverse_bidirectional_iterator<iterator,value_type,reference, 312 iterator begin() { return (_Node*)(_M_node->_M_next); } in begin() 315 iterator end() { return _M_node; } in end() 343 iterator insert(iterator __position, const _Tp& __x) { in insert() 351 iterator insert(iterator __position) { return insert(__position, _Tp()); } in insert() 356 void _M_insert_dispatch(iterator __pos, _Integer __n, _Integer __x, in _M_insert_dispatch() [all …]
|
H A D | stl_bvector.h | 78 typedef _Bit_iterator iterator; typedef 99 iterator& operator++() { 103 iterator operator++(int) { 104 iterator __tmp = *this; 108 iterator& operator--() { 112 iterator operator--(int) { 113 iterator __tmp = *this; 117 iterator& operator+=(difference_type __i) { 128 iterator& operator-=(difference_type __i) { 132 iterator operator+(difference_type __i) const { [all …]
|
/haiku/src/apps/text_search/ |
H A D | ChangesIterator.cpp | 56 PathMap::Iterator iterator = fPathMap.GetIterator(); in GetNextName() local 58 while (index < fIteratorIndex && iterator.HasNext()) { in GetNextName() 59 iterator.Next(); in GetNextName() 63 if (iterator.HasNext()) { in GetNextName() 64 const PathMap::Entry& entry = iterator.Next(); in GetNextName() 125 PathMap::Iterator iterator = fPathMap.GetIterator(); in IsEmpty() local 126 return !iterator.HasNext(); in IsEmpty() 133 PathMap::Iterator iterator = fPathMap.GetIterator(); in PrintToStream() local 134 while (iterator.HasNext()) { in PrintToStream() 135 const PathMap::Entry& entry = iterator.Next(); in PrintToStream()
|
/haiku/src/kits/translation/ |
H A D | TranslatorRoster.cpp | 191 TranslatorMap::iterator iterator = fTranslators.begin(); in ~Private() local 194 while (iterator != fTranslators.end()) { in ~Private() 195 BTranslator* translator = iterator->second.translator; in ~Private() 197 images.insert(iterator->second.image); in ~Private() 200 iterator++; in ~Private() 678 MessengerList::iterator iterator = fMessengers.begin(); in StopWatching() local 680 while (iterator != fMessengers.end()) { in StopWatching() 681 if (*iterator == target) { in StopWatching() 682 fMessengers.erase(iterator); in StopWatching() 689 iterator++; in StopWatching() [all …]
|
/haiku/src/bin/debug/profile/ |
H A D | SharedImage.cpp | 56 debug_symbol_iterator* iterator; in Init() local 58 &iterator); in Init() 68 error = _Init(iterator); in Init() 71 debug_delete_symbol_iterator(iterator); in Init() 82 debug_symbol_iterator* iterator; in Init() local 83 status_t error = debug_create_file_symbol_iterator(path, &iterator); in Init() 90 error = _Init(iterator); in Init() 92 debug_delete_symbol_iterator(iterator); in Init() 124 SharedImage::_Init(debug_symbol_iterator* iterator) in _Init() argument 127 status_t error = debug_get_symbol_iterator_image_info(iterator, &fInfo); in _Init() [all …]
|