csnip  0.1
Macros
heap.h File Reference

Heaps. More...

#include <assert.h>
#include <stddef.h>
#include <csnip/util.h>
#include <csnip/preproc.h>
Include dependency graph for heap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define csnip_heap_SiftUp(u, v, au_lessthan_av, swap_au_av, K, N, i)
 Sift an element towards the top (root) of the heap.
 
#define csnip_heap_SiftDown(u, v, au_lessthan_av, swap_au_av, K, N, i)
 Sift an element towards the bottom of the heap.
 
#define csnip_heap_Heapify(u, v, au_lessthan_av, swap_au_av, K, N)
 Transform an array into a heap.
 
#define CSNIP_HEAP_DECL_FUNCS(scope, prefix, gen_args)
 Generator macro to declare heap functions. More...
 
#define CSNIP_HEAP_DEF_FUNCS(scope, prefix, gen_args, u, v, au_lessthan_av, swap_au_av, K, N)
 Generator macro to define heap functions. More...