13#ifndef OS_PTHREADS_MAX_HEAP_HPP
14#define OS_PTHREADS_MAX_HEAP_HPP
PlatformIntType NATIVE_INT_TYPE
PlatformUIntType NATIVE_UINT_TYPE
C++-compatible configuration header for fprime configuration.
A stable max heap data structure.
bool isFull()
Is the heap full?
~MaxHeap()
MaxHeap deconstructor.
bool push(NATIVE_INT_TYPE value, NATIVE_UINT_TYPE id)
Push an item onto the heap.
MaxHeap()
MaxHeap constructor.
bool create(NATIVE_UINT_TYPE capacity)
MaxHeap creation.
void print()
Print the contents of the heap to stdout.
bool pop(NATIVE_INT_TYPE &value, NATIVE_UINT_TYPE &id)
Pop an item from the heap.
bool isEmpty()
Is the heap empty?
NATIVE_UINT_TYPE getSize()
Get the current number of elements on the heap.