1 /* Authors: Arnaud Legrand */
3 /* This program is free software; you can redistribute it and/or modify it
4 under the terms of the license (GNU LGPL) which comes with this package. */
6 #ifndef _XBT_HEAP_PRIVATE_H
7 #define _XBT_HEAP_PRIVATE_H
12 typedef struct xbt_heapItem {
15 } s_xbt_heapItem_t, *xbt_heapItem_t;
17 typedef struct xbt_heap {
26 #define RIGHT(i) 2*i+1
28 #define KEY(H,i) ((H->items)[i]).key
29 #define CONTENT(H,i) ((H->items)[i]).content
31 static void xbt_heap_maxHeapify(xbt_heap_t H);
32 static void xbt_heap_increaseKey(xbt_heap_t H, int i);
34 #endif /* _XBT_HEAP_PRIVATE_H */