SimpleHeap class.
More...
#include <SimpleHeap.h>
Public Methods | |
| void | write (ostream &os) |
| Write the key to an output stream. | |
| T & | key () |
| Return the key. | |
| int | compare (const T &key) |
| Compare the current key with key. | |
Private Methods | |
| SimpleHeapItem (const T *Key_) | |
| Constructor, which requires a key. | |
Private Attributes | |
| T | Key |
| The key object. | |
| int | element |
| The index into the heap's array that represents this key. | |
| int | ctr |
| The number of heap elements in the heap with this key. | |
Friends | |
| class | AbstractHeap< SimpleHeapItem< T >, T > |
| class | SimpleHeap< T > |
SimpleHeap class.