The OMHeap class
contains basic library functions that enable you to create and manipulate OMHeap objects.
An OMHeap is a type-safe, fixed size heap implementation.
An OMHeap has elements of type Node*.
This class is defined in the header file omheap.h.
Construction summary- OMHeap
- Constructs an OMHeap object
- ~OMHeap
- Destroys the OMHeap object
Method
summary- add
- Adds the specified element to the heap.
- find
- Looks for the specified element in the heap.
- isEmpty
- Determines whether the heap is empty.
- remove
- Deletes the specified
element from the heap.
- top
- Moves the iterator to the top of the heap.
- trim
- Deletes the top of the
heap.
- update
- This method is currently unused.