MCPcopy Create free account
hub / github.com/F-Stack/f-stack / HeapForeach

Method HeapForeach

adapter/micro_thread/heap.h:308–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

306
307
308inline void HeapList::HeapForeach()
309{
310 int per = 1;
311 for (int i = 1; i <= _count; i++)
312 {
313 if (i >= per*2)
314 {
315 printf("\n");
316 per *=2;
317 }
318 printf("%llu ", _list[i]->HeapValue());
319
320 _list[i]->HeapIterate();
321 }
322}
323
324inline int HeapEntry::InsertIntoHeap(HeapList* list) {
325 return list->HeapPush(this);

Callers

nothing calls this directly

Calls 3

HeapIterateMethod · 0.80
printfFunction · 0.50
HeapValueMethod · 0.45

Tested by

no test coverage detected