OPminHeap.h

OPminHeap

  • OPint* _indices
  • OPuint _capacity
  • OPuint _size

Globals

Functions

  • OPminHeap* OPminHeapCreate ( OPuint capacity )
Creates an OPminHeap
  • OPint OPminHeapDestroy ( OPminHeap* heap )
Destroys an OPminHeap
  • OPint OPminHeapPush ( OPminHeap* heap, OPint value )
Puts an element into an OPminHeap
  • OPint OPminHeapPop ( OPminHeap* heap )
Pops an element off the top of an OPminHeap
  • OPint OPminHeapPeek ( OPminHeap* heap )
Looks at the top element of an OPminHeap without popping it off
  • OPint OPminHeapSize ( OPminHeap* heap )
Size of the OPminHeap