Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members  

VDKHeap< T > Class Template Reference

provide a templatized Heap. More...

#include <vdkheap.h>

Inheritance diagram for VDKHeap< T >:

VDKContainer< T > List of all members.

Public Methods


Detailed Description

template<class T>
class VDKHeap< T >

provide a templatized Heap.

Description
VDKHeap<T> class has a value semantic, all objects are copied from original values. All managed type T objects should provide:
Implementation notes
I suggest to use typedef's like:
  typedef VDKHeap<someClass> SomeClassHeap;


Constructor & Destructor Documentation

template<class T>
VDKHeap< T >::VDKHeap   [inline]
 

Constructor makes an empty heap

template<class T>
VDKHeap< T >::VDKHeap T *    source,
int    size
 

Constructor

Parameters:
source  an array of type T obejcts
array  size

template<class T>
virtual VDKHeap< T >::~VDKHeap   [inline, virtual]
 

Destructor


Member Function Documentation

template<class T>
void VDKHeap< T >::Sort void   
 

Sorts on nlog(n) time


The documentation for this class was generated from the following file:
Generated on Sat May 4 21:58:28 2002 for vdk 2.0.1 by doxygen1.2.15