Heap< T > Class Template Reference

A heap class. More...

List of all members.

Public Member Functions

 Heap (int size)
 Initialise the heap to contain size items.
void insert (T &element)
 Insert an item into the heap.
void replaceMin (T &element)
 Replace the minimum heap item with 'element'.
void removeMin (T &element)
 Remove the minimum item from the heap.
T & showMin (void)
 Return the minimum heap item.
bool empty (void)
 Return true if the heap is empty.
int Size (void)
 Return the size of the heap (the maximum number of items that can be stored).
bool lessThanHeap (T &element)
 Return true if the element is less than the minumum heap value.

Detailed Description

template<typename T>
class Heap< T >

A heap class.

This class is a heap used to efficiently store and retieve data in an ordered fashion.

Author
lapark
Revision
1.2
Date
2009/10/08 06:41:30
Id
Heap.tcc,v 1.2 2009/10/08 06:41:30 lapark Exp

The documentation for this class was generated from the following file:
 All Classes Functions Variables Friends

Generated on Tue Nov 10 14:12:13 2009 for textIR by  doxygen 1.6.1