#include <heap.h>
Public Member Functions | |
CIntHeap (int initial_size) | |
CIntHeap () | |
void | deleteheap (AbstractSearchState *AbstractSearchState) |
AbstractSearchState * | deleteminheap () |
bool | emptyheap () |
bool | fullheap () |
int | getkeyheap (AbstractSearchState *AbstractSearchState) |
AbstractSearchState * | getminheap (int &ReturnKey) |
AbstractSearchState * | getminheap () |
int | getminkeyheap () |
bool | inheap (AbstractSearchState *AbstractSearchState) |
void | insertheap (AbstractSearchState *AbstractSearchState, int key) |
void | makeemptyheap () |
void | makeheap () |
void | updateheap (AbstractSearchState *AbstractSearchState, int NewKey) |
~CIntHeap () | |
Public Attributes | |
int | allocated |
int | currentsize |
heapintelement * | heap |
int | percolates |
Private Member Functions | |
void | growheap () |
void | percolatedown (int hole, heapintelement tmp) |
void | percolateup (int hole, heapintelement tmp) |
void | percolateupordown (int hole, heapintelement tmp) |
void | sizecheck () |
Definition at line 102 of file heap.h.
void CIntHeap::deleteheap | ( | AbstractSearchState * | AbstractSearchState | ) |
AbstractSearchState * CIntHeap::deleteminheap | ( | ) |
int CIntHeap::getkeyheap | ( | AbstractSearchState * | AbstractSearchState | ) |
AbstractSearchState * CIntHeap::getminheap | ( | int & | ReturnKey | ) |
AbstractSearchState * CIntHeap::getminheap | ( | ) |
bool CIntHeap::inheap | ( | AbstractSearchState * | AbstractSearchState | ) |
void CIntHeap::insertheap | ( | AbstractSearchState * | AbstractSearchState, | |
int | key | |||
) |
void CIntHeap::percolatedown | ( | int | hole, | |
heapintelement | tmp | |||
) | [private] |
void CIntHeap::percolateup | ( | int | hole, | |
heapintelement | tmp | |||
) | [private] |
void CIntHeap::percolateupordown | ( | int | hole, | |
heapintelement | tmp | |||
) | [private] |
void CIntHeap::updateheap | ( | AbstractSearchState * | AbstractSearchState, | |
int | NewKey | |||
) |