Zephyr API Documentation 4.4.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
min_heap_ref Struct Reference

min-heap data structure with user-provided comparator. More...

#include <zephyr/sys/min_heap_ref.h>

Data Fields

struct min_heap_handle ** storage
 Array of handle pointers: one slot per element.
size_t capacity
 Maximum number of elements.
size_t size
 Current elements count.
min_heap_ref_cmp_t cmp
 Comparator function: returns <0, 0, >0.

Detailed Description

min-heap data structure with user-provided comparator.

Field Documentation

◆ capacity

size_t min_heap_ref::capacity

Maximum number of elements.

◆ cmp

min_heap_ref_cmp_t min_heap_ref::cmp

Comparator function: returns <0, 0, >0.

◆ size

size_t min_heap_ref::size

Current elements count.

◆ storage

struct min_heap_handle** min_heap_ref::storage

Array of handle pointers: one slot per element.


The documentation for this struct was generated from the following file: