| 306 | |
| 307 | |
| 308 | inline 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 | |
| 324 | inline int HeapEntry::InsertIntoHeap(HeapList* list) { |
| 325 | return list->HeapPush(this); |
nothing calls this directly
no test coverage detected