#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 | |
void | __gl_pqHeapDelete (PriorityQHeap *pq, PQHeapHandle hCurr) |
void | __gl_pqHeapDeletePriorityQ (PriorityQHeap *pq) |
PQHeapKey | __gl_pqHeapExtractMin (PriorityQHeap *pq) |
void | __gl_pqHeapInit (PriorityQHeap *pq) |
PQHeapHandle | __gl_pqHeapInsert (PriorityQHeap *pq, PQHeapKey keyNew) |
PriorityQHeap * | __gl_pqHeapNewPriorityQ (int(*leq)(PQHeapKey key1, PQHeapKey key2)) |
static void | FloatDown (PriorityQHeap *pq, long curr) |
static void | FloatUp (PriorityQHeap *pq, long curr) |
#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.
void __gl_pqHeapDelete | ( | PriorityQHeap * | pq, |
PQHeapHandle | hCurr | ||
) |
Definition at line 234 of file priorityq-heap.c.
void __gl_pqHeapDeletePriorityQ | ( | PriorityQHeap * | pq | ) |
Definition at line 88 of file priorityq-heap.c.
PQHeapKey __gl_pqHeapExtractMin | ( | PriorityQHeap * | pq | ) |
Definition at line 211 of file priorityq-heap.c.
void __gl_pqHeapInit | ( | PriorityQHeap * | pq | ) |
Definition at line 149 of file priorityq-heap.c.
PQHeapHandle __gl_pqHeapInsert | ( | PriorityQHeap * | pq, |
PQHeapKey | keyNew | ||
) |
Definition at line 163 of file priorityq-heap.c.
PriorityQHeap * __gl_pqHeapNewPriorityQ | ( | int(*)(PQHeapKey key1, PQHeapKey key2) | leq | ) |
Definition at line 58 of file priorityq-heap.c.
|
static |
Definition at line 96 of file priorityq-heap.c.
|
static |
Definition at line 126 of file priorityq-heap.c.