Kstars
6 #ifndef __priorityq_sort_h_
7 #define __priorityq_sort_h_
9 #include "priorityq-heap.h"
15 #undef pqDeletePriorityQ
25 #define PQkey PQSortKey
26 #define PQhandle PQSortHandle
27 #define PriorityQ PriorityQSort
29 #define pqNewPriorityQ(leq) __gl_pqSortNewPriorityQ(leq)
30 #define pqDeletePriorityQ(pq) __gl_pqSortDeletePriorityQ(pq)
45 #define pqInit(pq) __gl_pqSortInit(pq)
46 #define pqInsert(pq, key) __gl_pqSortInsert(pq, key)
47 #define pqMinimum(pq) __gl_pqSortMinimum(pq)
48 #define pqExtractMin(pq) __gl_pqSortExtractMin(pq)
49 #define pqDelete(pq, handle) __gl_pqSortDelete(pq, handle)
50 #define pqIsEmpty(pq) __gl_pqSortIsEmpty(pq)
63 typedef PQHeapKey PQkey;
64 typedef PQHeapHandle PQhandle;
65 typedef struct PriorityQ PriorityQ;
74 int (*leq)(PQkey key1, PQkey key2);
77 PriorityQ *pqNewPriorityQ(
int (*leq)(PQkey key1, PQkey key2));
78 void pqDeletePriorityQ(PriorityQ *pq);
80 int pqInit(PriorityQ *pq);
81 PQhandle pqInsert(PriorityQ *pq, PQkey key);
82 PQkey pqExtractMin(PriorityQ *pq);
83 void pqDelete(PriorityQ *pq, PQhandle handle);
85 PQkey pqMinimum(PriorityQ *pq);
86 int pqIsEmpty(PriorityQ *pq);
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Aug 13 2022 04:01:57 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.