cdsa
Arena allocators and friends
Loading...
Searching...
No Matches
Heap Struct Reference

Represents a binary heap (min-heap by default) More...

#include <heap.h>

Data Fields

Arena * arena
 Pointer to an arena allocator.
 
struct {
   long   size
 Size of the item data in bytes.
 
   HeapDataCompare *   compare
 Pointer to a data comparison function.
 
   HeapDataCopy *   copy
 Pointer to a data copy function.
 
} data
 Data properties.
 
long length
 Number of items in the heap.
 
HeapItem * begin
 Pointer to the root item of the heap.
 
HeapItem * end
 Pointer to the last item in the heap.
 

Detailed Description

Represents a binary heap (min-heap by default)


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