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