Classes | Macros | Typedefs | Functions
heap-inl.h File Reference
#include <stddef.h>
Include dependency graph for heap-inl.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  heap
 
struct  heap_node
 

Macros

#define HEAP_EXPORT(declaration)   static declaration
 

Typedefs

typedef int(* heap_compare_fn) (const struct heap_node *a, const struct heap_node *b)
 

Functions

 HEAP_EXPORT (struct heap_node *heap_min(const struct heap *heap))
 
 HEAP_EXPORT (void heap_dequeue(struct heap *heap, heap_compare_fn less_than))
 
 HEAP_EXPORT (void heap_init(struct heap *heap))
 
 HEAP_EXPORT (void heap_insert(struct heap *heap, struct heap_node *newnode, heap_compare_fn less_than))
 
 HEAP_EXPORT (void heap_remove(struct heap *heap, struct heap_node *node, heap_compare_fn less_than))
 
static void heap_node_swap (struct heap *heap, struct heap_node *parent, struct heap_node *child)
 

Macro Definition Documentation

◆ HEAP_EXPORT

#define HEAP_EXPORT (   declaration)    static declaration

Definition at line 24 of file heap-inl.h.

Typedef Documentation

◆ heap_compare_fn

typedef int(* heap_compare_fn) (const struct heap_node *a, const struct heap_node *b)

Definition at line 46 of file heap-inl.h.

Function Documentation

◆ HEAP_EXPORT() [1/5]

HEAP_EXPORT ( struct heap_node heap_minconst struct heap *heap)

Definition at line 67 of file heap-inl.h.

◆ HEAP_EXPORT() [2/5]

HEAP_EXPORT ( void   heap_dequeuestruct heap *heap, heap_compare_fn less_than)

Definition at line 239 of file heap-inl.h.

◆ HEAP_EXPORT() [3/5]

HEAP_EXPORT ( void   heap_initstruct heap *heap)

Definition at line 62 of file heap-inl.h.

◆ 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.

◆ 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.

◆ heap_node_swap()

static void heap_node_swap ( struct heap heap,
struct heap_node parent,
struct heap_node child 
)
static

Definition at line 72 of file heap-inl.h.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:19