 |
F´ Flight Software - C/C++ Documentation
NASA-v1.6.0
A framework for building embedded system applications to NASA flight quality standards.
|
Go to the documentation of this file.
13 #ifndef OS_PTHREADS_MAX_HEAP_HPP
14 #define OS_PTHREADS_MAX_HEAP_HPP
16 #include "Fw/Types/BasicTypes.hpp"
116 #endif // OS_PTHREADS_MAX_HEAP_HPP
bool push(NATIVE_INT_TYPE value, NATIVE_UINT_TYPE id)
Push an item onto the heap.
bool create(NATIVE_UINT_TYPE capacity)
MaxHeap creation.
bool isEmpty()
Is the heap empty?
NATIVE_UINT_TYPE getSize()
Get the current number of elements on the heap.
~MaxHeap()
MaxHeap deconstructor.
A stable max heap data structure.
void print()
Print the contents of the heap to stdout.
bool isFull()
Is the heap full?
bool pop(NATIVE_INT_TYPE &value, NATIVE_UINT_TYPE &id)
Pop an item from the heap.
MaxHeap()
MaxHeap constructor.