MCPcopy Create free account
hub / github.com/1a1a11a/libCacheSim / pqueue_dump

Function pqueue_dump

libCacheSim/dataStructure/pqueue.c:240–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

238
239
240void
241pqueue_dump(pqueue_t *q,
242 FILE *out,
243 pqueue_print_entry_f print)
244{
245 int i;
246
247 fprintf(stdout,"posn\tleft\tright\tparent\tmaxchild\t...\n");
248 for (i = 1; i < (int) q->size ;i++) {
249 fprintf(stdout,
250 "%d\t%d\t%d\t%d\t%ul\t",
251 i,
252 left(i), right(i), parent(i),
253 (unsigned int)maxchild(q, i));
254 print(out, q->d[i]);
255 }
256}
257
258
259void

Callers

nothing calls this directly

Calls 1

maxchildFunction · 0.85

Tested by

no test coverage detected