13 #ifndef UTILS_TYPES_MAX_HEAP_HPP 14 #define UTILS_TYPES_MAX_HEAP_HPP 119 #endif // UTILS_TYPES_MAX_HEAP_HPP static constexpr FwSizeType ALIGNMENT
Exposes the ALIGNMENT for pre-allocation.
PlatformSizeType FwSizeType
bool pop(FwQueuePriorityType &value, FwSizeType &id)
Pop an item from the heap.
~MaxHeap()
MaxHeap deconstructor.
bool isEmpty()
Is the heap empty?
bool push(FwQueuePriorityType value, FwSizeType id)
Push an item onto the heap.
A variable-length byte array.
A stable max heap data structure.
MaxHeap()
MaxHeap constructor.
bool isFull()
Is the heap full?
FwSizeType getSize() const
Get the current number of elements on the heap.
PlatformQueuePriorityType FwQueuePriorityType
The type of queue priorities used.
static constexpr FwSizeType ELEMENT_SIZE
Exposes the ELEMENT_SIZE for pre-allocation.
void create(FwSizeType capacity, Fw::ByteArray heap_allocation)
MaxHeap creation.
void teardown()
MaxHeap teardown.