#include <stdlib.h>
Go to the source code of this file.
Classes | |
| struct | pq_node | 
| an element in a minimizing priority queue  More... | |
| struct | min_pq | 
| a minimizing priority queue  More... | |
Macros | |
| #define | MINPQ_INIT_NALLOCD 512 | 
Functions | |
| struct min_pq * | minpq_init () | 
Creates a new minimizing priority queue. More...  | |
| int | minpq_insert (struct min_pq *min_pq, void *data, int key) | 
Inserts an element into a minimizing priority queue. More...  | |
| void * | minpq_get_min (struct min_pq *min_pq) | 
Returns the element of a minimizing priority queue with the smallest key without removing it from the queue. More...  | |
| void * | minpq_extract_min (struct min_pq *min_pq) | 
Removes and returns the element of a minimizing priority queue with the smallest key. More...  | |
| void | minpq_release (struct min_pq **min_pq) | 
De-allocates the memory held by a minimizing priorioty queue More...  | |
| struct min_pq* minpq_init | ( | ) | 
Creates a new minimizing priority queue. 
Inserts an element into a minimizing priority queue. 
| min_pq | a minimizing priority queue | 
| data | the data to be inserted | 
| key | the key to be associated with data | 
| Page generated by Doxygen 1.8.14 for MRPT 1.5.6 Git: 4c65e8431 Tue Apr 24 08:18:17 2018 +0200 at lun oct 28 01:35:26 CET 2019 |