#include <stddef.h>#include <assert.h>#include "priorityq-heap.h"#include "memalloc.h"#include "geom.h"Macros | |
| #define | FALSE 0 |
| #define | INIT_SIZE 32 |
| #define | LEQ(x, y) VertLeq((GLUvertex *)x, (GLUvertex *)y) |
| #define | TRUE 1 |
Functions | |
| static void | FloatDown (PriorityQ *pq, long curr) |
| static void | FloatUp (PriorityQ *pq, long curr) |
| void | pqDelete (PriorityQ *pq, PQhandle hCurr) |
| void | pqDeletePriorityQ (PriorityQ *pq) |
| PQkey | pqExtractMin (PriorityQ *pq) |
| void | pqInit (PriorityQ *pq) |
| PQhandle | pqInsert (PriorityQ *pq, PQkey keyNew) |
| PriorityQ * | pqNewPriorityQ (int(*leq)(PQkey key1, PQkey key2)) |
| #define FALSE 0 |
Definition at line 46 of file priorityq-heap.c.
| #define INIT_SIZE 32 |
Definition at line 40 of file priorityq-heap.c.
Definition at line 54 of file priorityq-heap.c.
| #define TRUE 1 |
Definition at line 43 of file priorityq-heap.c.
Definition at line 96 of file priorityq-heap.c.
Definition at line 126 of file priorityq-heap.c.
Definition at line 234 of file priorityq-heap.c.
Definition at line 88 of file priorityq-heap.c.
Definition at line 211 of file priorityq-heap.c.
Definition at line 149 of file priorityq-heap.c.
Definition at line 163 of file priorityq-heap.c.
Definition at line 58 of file priorityq-heap.c.