#include <stddef.h>
Go to the source code of this file.
◆ HEAP_EXPORT
#define HEAP_EXPORT |
( |
|
declaration | ) |
static declaration |
◆ heap_compare_fn
◆ HEAP_EXPORT() [1/5]
HEAP_EXPORT |
( |
struct heap_node * |
heap_minconst struct heap *heap | ) |
|
◆ HEAP_EXPORT() [2/5]
HEAP_EXPORT |
( |
void |
heap_dequeuestruct heap *heap, heap_compare_fn less_than | ) |
|
◆ HEAP_EXPORT() [3/5]
HEAP_EXPORT |
( |
void |
heap_initstruct heap *heap | ) |
|
◆ HEAP_EXPORT() [4/5]
HEAP_EXPORT |
( |
void |
heap_insertstruct heap *heap, struct heap_node *newnode, heap_compare_fn less_than | ) |
|
Definition at line 106 of file heap-inl.h.
115 newnode->left =
NULL;
116 newnode->right =
NULL;
117 newnode->parent =
NULL;
131 child = &(*child)->
right;
133 child = &(*child)->
left;
139 newnode->parent = *
parent;
146 while (newnode->parent !=
NULL && less_than(newnode, newnode->parent))
static static fork const void static count static fd const char const char static newpath const char static path const char path
static void heap_node_swap(struct heap *heap, struct heap_node *parent, struct heap_node *child)
struct heap_node * parent
References heap_node_swap(), k, heap_node::left, heap::min, n, heap::nelts, NULL, heap_node::parent, path, and heap_node::right.
◆ HEAP_EXPORT() [5/5]
HEAP_EXPORT |
( |
void |
heap_removestruct heap *heap, struct heap_node *node, heap_compare_fn less_than | ) |
|
Definition at line 150 of file heap-inl.h.
174 max = &(*max)->right;
208 if (node->parent ==
NULL) {
210 }
else if (node->parent->left == node) {
222 if (child->
left !=
NULL && less_than(child->
left, smallest))
223 smallest = child->
left;
225 smallest = child->
right;
226 if (smallest == child)
if(dbg->bits==RZ_SYS_BITS_64)
References heap_node_swap(), if(), k, heap_node::left, max, heap::min, n, heap::nelts, NULL, heap_node::parent, path, and heap_node::right.
◆ heap_node_swap()