![]() |
Prusa Slicer 2.6.0
|
#include "gluos.h"#include <stddef.h>#include <assert.h>#include <limits.h>#include "memalloc.h"#include "priorityq-heap.c"#include "priorityq-sort.h"
Include dependency graph for priorityq.c:Go to the source code of this file.
Macros | |
| #define | LT(x, y) (! LEQ(y,x)) |
| #define | GT(x, y) (! LEQ(x,y)) |
| #define | Swap(a, b) do{PQkey *tmp = *a; *a = *b; *b = tmp;}while(0) |
Functions | |
| PriorityQ * | pqNewPriorityQ (int(*leq)(PQkey key1, PQkey key2)) |
| void | pqDeletePriorityQ (PriorityQ *pq) |
| int | pqInit (PriorityQ *pq) |
| PQhandle | pqInsert (PriorityQ *pq, PQkey keyNew) |
| PQkey | pqExtractMin (PriorityQ *pq) |
| PQkey | pqMinimum (PriorityQ *pq) |
| int | pqIsEmpty (PriorityQ *pq) |
| void | pqDelete (PriorityQ *pq, PQhandle curr) |
| #define GT | ( | x, | |
| y | |||
| ) | (! LEQ(x,y)) |
| #define LT | ( | x, | |
| y | |||
| ) | (! LEQ(y,x)) |
| #define Swap | ( | a, | |
| b | |||
| ) | do{PQkey *tmp = *a; *a = *b; *b = tmp;}while(0) |
References PriorityQ::heap, PriorityQ::keys, PriorityQ::order, and PriorityQ::size.
References PriorityQ::heap, PriorityQ::keys, memFree, and PriorityQ::order.
References __gl_pqHeapIsEmpty, __gl_pqHeapMinimum, PriorityQ::heap, LEQ, PriorityQ::order, and PriorityQ::size.
| int pqInit | ( | PriorityQ * | pq | ) |
References GT, PriorityQ::heap, PriorityQ::initialized, PriorityQ::keys, LEQ, LT, PriorityQ::max, memAlloc, PriorityQ::order, PriorityQ::size, Swap, and TRUE.
References PriorityQ::heap, PriorityQ::initialized, PriorityQ::keys, PriorityQ::max, memRealloc, and PriorityQ::size.
| int pqIsEmpty | ( | PriorityQ * | pq | ) |
References __gl_pqHeapIsEmpty, PriorityQ::heap, and PriorityQ::size.
References __gl_pqHeapIsEmpty, __gl_pqHeapMinimum, PriorityQ::heap, LEQ, PriorityQ::order, and PriorityQ::size.
References FALSE, PriorityQ::heap, INIT_SIZE, PriorityQ::initialized, PriorityQ::keys, PriorityQ::leq, PriorityQ::max, memAlloc, memFree, PriorityQ::order, and PriorityQ::size.