Searched refs:iterator (Results 1 - 25 of 411) sorted by relevance

1234567891011>>

/haiku/src/kits/app/
H A DTokenSpace.cpp88 TokenMap::iterator iterator = fTokenMap.find(token); local
89 if (iterator == fTokenMap.end())
92 fTokenMap.erase(iterator);
105 TokenMap::const_iterator iterator = fTokenMap.find(token); local
106 if (iterator != fTokenMap.end() && iterator->second.type == type)
121 TokenMap::const_iterator iterator = fTokenMap.find(token); local
122 if (iterator == fTokenMap.end() || iterator
138 TokenMap::iterator iterator = fTokenMap.find(token); local
161 TokenMap::const_iterator iterator = fTokenMap.find(token); local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/client/
H A DQueryManager.cpp35 // delete all iterator lists (there shouldn't be any, though)
51 // allocate iterator map
64 QueryManager::AddIterator(QueryIterator* iterator) argument
66 if (!iterator || !iterator->GetVolume())
71 // get the iterator list for the volume
72 vnode_id nodeID = iterator->GetVolume()->GetRootID();
88 // add the iterator
89 iteratorList->Insert(iterator);
91 // get a volume reference for the iterator
99 AddSubIterator(HierarchicalQueryIterator* iterator, QueryIterator* subIterator) argument
116 RemoveSubIterator(HierarchicalQueryIterator* iterator, QueryIterator* subIterator) argument
133 GetCurrentSubIterator(HierarchicalQueryIterator* iterator) argument
147 NextSubIterator(HierarchicalQueryIterator* iterator, QueryIterator* subIterator) argument
159 RewindSubIterator(HierarchicalQueryIterator* iterator) argument
169 PutIterator(QueryIterator* iterator) argument
238 QueryIterator* iterator = iteratorList->First(); local
[all...]
H A DQueryManager.h20 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) argument
60 fIterator(iterator)
H A DServerVolume.cpp66 // init a directory iterator
67 VirtualDirIterator iterator; local
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; local
178 iterator
232 ServerQueryIterator* iterator = new(std::nothrow) ServerQueryIterator(this); local
270 ServerQueryIterator* iterator local
307 ServerQueryIterator* iterator local
[all...]
/haiku/src/add-ons/kernel/file_systems/ramfs/
H A DEntry.cpp82 Entry::AttachEntryIterator(EntryIterator *iterator) argument
84 if (iterator && iterator->GetCurrent() == this && !iterator->IsSuspended())
85 fIterators.Insert(iterator);
90 Entry::DetachEntryIterator(EntryIterator *iterator) argument
92 if (iterator && iterator->GetCurrent() == this && iterator->IsSuspended())
93 fIterators.Remove(iterator);
[all...]
H A DSizeIndex.cpp126 for (Iterator *iterator = fIterators->First();
127 iterator;
128 iterator = fIterators->GetNext(iterator)) {
129 iterator->SetTo(NULL, 0);
155 for (Iterator *iterator = fIterators->First();
156 iterator;
157 iterator = fIterators->GetNext(iterator)) {
158 if (iterator
196 Iterator *iterator = new(nothrow) Iterator; local
224 _AddIterator(Iterator *iterator) argument
231 _RemoveIterator(Iterator *iterator) argument
[all...]
H A DLastModifiedIndex.cpp128 for (Iterator *iterator = fIterators->First();
129 iterator;
130 iterator = fIterators->GetNext(iterator)) {
131 iterator->SetTo(NULL, 0);
157 for (Iterator *iterator = fIterators->First();
158 iterator;
159 iterator = fIterators->GetNext(iterator)) {
160 if (iterator
197 Iterator *iterator = new(nothrow) Iterator; local
225 _AddIterator(Iterator *iterator) argument
232 _RemoveIterator(Iterator *iterator) argument
[all...]
H A DAttribute.cpp118 Attribute::AttachAttributeIterator(AttributeIterator *iterator) argument
120 if (iterator && iterator->GetCurrent() == this && !iterator->IsSuspended())
121 fIterators.Insert(iterator);
126 Attribute::DetachAttributeIterator(AttributeIterator *iterator) argument
128 if (iterator && iterator->GetCurrent() == this && iterator->IsSuspended())
129 fIterators.Remove(iterator);
[all...]
/haiku/headers/cpp/
H A Dstl.h7 #include <iterator>
/haiku/src/kits/media/
H A DPortPool.cpp34 PortSet::iterator iterator = fPool.begin(); local
36 for (; iterator != fPool.end(); iterator++)
37 delete_port(*iterator);
H A DBufferCache.cpp29 BufferMap::Iterator iterator = fMap.GetIterator(); local
30 while (iterator.HasNext()) {
31 BufferMap::Entry entry = iterator.Next();
75 BufferMap::Iterator iterator = fMap.GetIterator(); local
76 while (iterator.HasNext()) {
77 BufferMap::Entry entry = iterator.Next();
82 fMap.Remove(iterator);
H A DTimeSourceObjectManager.cpp45 NodeMap::iterator iterator = fMap.begin(); local
46 for (; iterator != fMap.end(); iterator++) {
47 BTimeSource* timeSource = iterator->second;
73 NodeMap::iterator found = fMap.find(node.node);
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DInodeIdMap.cpp18 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); local
19 if (iterator.HasCurrent()) {
20 if (fileInfo.fHandle == iterator.Current().fHandle) {
21 return iterator.CurrentValuePointer()->fNames->AddName(parent,
48 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); local
49 if (!iterator.HasCurrent())
52 FileInfo* fileInfo = iterator.CurrentValuePointer();
72 AVLTreeMap<ino_t, FileInfo>::Iterator iterator = fMap.Find(id); local
73 if (!iterator.HasCurrent())
76 *fileInfo = iterator
[all...]
/haiku/src/apps/text_search/
H A DChangesIterator.cpp56 PathMap::Iterator iterator = fPathMap.GetIterator(); local
58 while (index < fIteratorIndex && iterator.HasNext()) {
59 iterator.Next();
63 if (iterator.HasNext()) {
64 const PathMap::Entry& entry = iterator.Next();
125 PathMap::Iterator iterator = fPathMap.GetIterator(); local
126 return !iterator.HasNext();
133 PathMap::Iterator iterator = fPathMap.GetIterator(); local
134 while (iterator.HasNext()) {
135 const PathMap::Entry& entry = iterator
[all...]
/haiku/src/system/boot/loader/file_systems/amiga_ffs/
H A DDirectory.cpp63 HashIterator *iterator = new(nothrow) HashIterator(fVolume.Device(), fNode); local
64 if (iterator == NULL)
67 if (iterator->InitCheck() != B_OK) {
68 delete iterator;
72 *_cookie = (void *)iterator;
95 HashIterator iterator(fVolume.Device(), fNode);
96 if (iterator.InitCheck() != B_OK)
99 iterator.Goto(fNode.HashIndexFor(fVolume.Type(), name));
103 while ((node = iterator.GetNext(block)) != NULL) {
122 HashIterator *iterator local
143 HashIterator *iterator = (HashIterator *)cookie; local
[all...]
/haiku/src/servers/media/
H A DAppManager.cpp123 AppMap::iterator found = fMap.find(team);
140 AppMap::iterator iterator = fMap.begin(); local
141 for (; iterator != fMap.end(); iterator++) {
143 be_roster->GetRunningAppInfo(iterator->first, &info);
145 iterator->first, info.ref.name,
146 iterator->second.IsValid() ? "" : "NOT ");
158 AppMap::iterator iterator local
[all...]
/haiku/src/tools/fs_shell/
H A Dhash.cpp154 hash_remove_current(struct hash_table *table, struct hash_iterator *iterator) argument
156 uint32_t index = iterator->bucket;
159 if (iterator->current == NULL)
166 if (element == iterator->current) {
167 iterator->current = lastElement;
239 hash_open(struct hash_table *table, struct hash_iterator *iterator) argument
241 if (iterator == NULL) {
242 iterator = (struct hash_iterator *)malloc(sizeof(struct hash_iterator));
243 if (iterator == NULL)
247 hash_rewind(table, iterator);
254 hash_close(struct hash_table *table, struct hash_iterator *iterator, bool freeIterator) argument
262 hash_rewind(struct hash_table *table, struct hash_iterator *iterator) argument
270 hash_next(struct hash_table *table, struct hash_iterator *iterator) argument
[all...]
/haiku/src/bin/debug/profile/
H A DSharedImage.cpp54 // create a symbol iterator
55 debug_symbol_iterator* iterator; local
57 &iterator);
59 fprintf(stderr, "Failed to init symbol iterator for image %ld: %s\n",
66 error = _Init(iterator);
69 debug_delete_symbol_iterator(iterator);
79 // create a symbol iterator
80 debug_symbol_iterator* iterator; local
81 status_t error = debug_create_file_symbol_iterator(path, &iterator);
83 fprintf(stderr, "Failed to init symbol iterator fo
122 _Init(debug_symbol_iterator* iterator) argument
[all...]
/haiku/src/servers/app/font/
H A DFontCache.cpp39 FontMap::Iterator iterator = fFontCacheEntries.GetIterator(); local
40 while (iterator.HasNext())
41 iterator.Next().value->ReleaseReference();
131 FontMap::Iterator iterator = fFontCacheEntries.GetIterator();
134 // some entries, so using the iterator like that should be ok
135 FontCacheEntry* leastUsedEntry = iterator.Next().value;
142 while (iterator.HasNext()) {
143 FontCacheEntry* entry = iterator.Next().value;
154 iterator = fFontCacheEntries.GetIterator();
155 while (iterator
[all...]
/haiku/src/system/boot/loader/
H A DRootFileSystem.cpp34 EntryIterator *iterator = new (std::nothrow) EntryIterator(&fList); local
35 if (iterator == NULL)
38 *_cookie = iterator;
55 EntryIterator iterator = fLinks.GetIterator(); local
60 while ((entry = iterator.Next()) != NULL) {
69 iterator = fList.GetIterator();
71 while ((entry = iterator.Next()) != NULL) {
89 EntryIterator *iterator = (EntryIterator *)_cookie; local
92 entry = iterator->Next();
103 EntryIterator *iterator local
118 EntryIterator *iterator = (EntryIterator *)_cookie; local
170 EntryIterator iterator = fList.GetIterator(); local
[all...]
/haiku/src/add-ons/kernel/bluetooth/btCoreData/
H A DConnectionInterface.cpp77 DoublyLinkedList<HciConnection>::Iterator iterator local
80 while (iterator.HasNext()) {
82 conn = iterator.Next();
106 DoublyLinkedList<HciConnection>::Iterator iterator local
108 while (iterator.HasNext()) {
110 conn = iterator.Next();
134 DoublyLinkedList<HciConnection>::Iterator iterator local
136 while (iterator.HasNext()) {
138 conn = iterator.Next();
153 DoublyLinkedList<HciConnection>::Iterator iterator local
172 DoublyLinkedList<HciConnection>::Iterator iterator local
[all...]
/haiku/src/servers/net/
H A DServices.cpp82 ConnectionList::const_iterator iterator = connections.begin(); local
83 for (; iterator != connections.end(); iterator++) {
84 const service_connection& connection = *iterator;
116 ConnectionList::const_iterator iterator = connections.begin(); local
117 for (; iterator != connections.end(); iterator++) {
118 const service_connection& connection = *iterator;
253 ConnectionList::iterator iterator local
306 ServiceNameMap::iterator iterator = fNameMap.find(service->name); local
312 ConnectionList::const_iterator iterator = service->connections.begin(); local
387 ServiceNameMap::iterator iterator = fNameMap.find(service->name); local
406 ServiceNameMap::iterator iterator = fNameMap.begin(); local
501 ServiceSocketMap::iterator iterator = fSocketMap.find(i); local
[all...]
/haiku/src/add-ons/kernel/file_systems/packagefs/nodes/
H A DDirectory.cpp99 DirectoryIterator* iterator = it.Next();) {
100 if (iterator->node == node)
101 iterator->node = nextNode;
114 Directory::AddDirectoryIterator(DirectoryIterator* iterator) argument
116 fIterators.Add(iterator);
121 Directory::RemoveDirectoryIterator(DirectoryIterator* iterator) argument
123 fIterators.Remove(iterator);
/haiku/src/add-ons/kernel/network/ppp/ppp_manager/
H A DKPPPManager.cpp129 DoublyLinkedList<entry_private>::Iterator iterator local
131 while (iterator.HasNext()) {
132 entry_private* pentry = iterator.Next();
150 DoublyLinkedList<entry_private>::Iterator iterator
152 while (iterator.HasNext()) {
153 entry_private* pentry = iterator.Next();
171 DoublyLinkedList<entry_private>::Iterator iterator local
173 while (iterator.HasNext()) {
174 entry_private* pentry = iterator.Next();
200 DoublyLinkedList<entry_private>::Iterator iterator local
258 DoublyLinkedList<entry_private>::Iterator iterator local
277 DoublyLinkedList<entry_private>::Iterator iterator local
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/server/
H A DDirectory.cpp230 while (DirIterator* iterator = fIterators.First())
231 iterator->SetDirectory(NULL);
262 for (DirIterator* iterator = fIterators.First();
263 iterator;
264 iterator = fIterators.GetNext(iterator)) {
265 if (iterator->GetCurrentEntry() == entry)
266 iterator->NextEntry();
307 // create the iterator
308 DirIterator* iterator;
344 RemoveDirIterator(DirIterator* iterator) argument
[all...]

Completed in 270 milliseconds

1234567891011>>