HeapSort< T > Class Template Reference

A HeapSort implementation for sorting arrays. More...

#include <heapsort.h>

Inheritance diagram for HeapSort< T >:

Sorter< T >

List of all members.

Public Member Functions

int Sort (T *_array, size_t _size)
 Sorts an array using the HeapSort method.


Detailed Description

template<class T>
class CrissCross::Data::HeapSort< T >

A HeapSort implementation for sorting arrays.

Member Function Documentation

int Sort ( T *  _array,
size_t  _size 
) [inline, virtual]

Sorts an array using the HeapSort method.

Parameters:
_array The array to sort.
_size The size of the array to sort.
Returns:
0 on success.

Implements Sorter< T >.

References CrissCross::Data::Compare(), and Sorter< T >::Swap().


Generated on Sun Feb 8 11:10:00 2009 for CrissCross by  doxygen 1.5.8