|
TRF Language Model
|
heap More...
#include <wb-heap.h>
Public Member Functions | |
| Heap (_wb_HEAP_MODE_ mode=HEAPMODE_MAXHEAP, int size=1) | |
| ~Heap () | |
| void | Clean () |
| int | GetNum () |
| bool | IsEmpty () |
| void | Swap (int i, int j) |
| exchange More... | |
| void | Update (int i) |
| update the data at position i and then heapify More... | |
| void | Heapify (int i) |
| heapify More... | |
| void | Insert (TValue p_value, TWeight p_w) |
| insert a value More... | |
| bool | GetTop (TValue &p_value, TWeight &p_w) |
| get the value at the top of heap More... | |
| void | SetTop (TValue p_value, TWeight p_w) |
| set the value at top and heapify More... | |
| bool | OutTop (TValue &p_value, TWeight &p_w) |
| out the top More... | |
heap
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |