#include <MHeap.h>
Inheritance diagram for MHeap< T >:
Public Member Functions | |
MHeap () | |
void | push (const T &) |
void | pop () |
T & | head () |
bool | empty () const |
Private Member Functions | |
void | swap (unsigned int a, unsigned int b) |
void | percolateUp (unsigned int x) |
void | percolateDown (unsigned int x) |
unsigned int | floor (unsigned int a, unsigned int b) |
Private Attributes | |
MVector< T > | m_heap |
Definition at line 7 of file MHeap.h.
void MHeap< T >::push | ( | const T & | ) | [inline] |
bool MHeap< T >::empty | ( | ) | const [inline] |
void MHeap< T >::swap | ( | unsigned int | a, | |
unsigned int | b | |||
) | [inline, private] |
void MHeap< T >::percolateUp | ( | unsigned int | x | ) | [inline, private] |
void MHeap< T >::percolateDown | ( | unsigned int | x | ) | [inline, private] |
unsigned int MHeap< T >::floor | ( | unsigned int | a, | |
unsigned int | b | |||
) | [inline, private] |