VDKHeap< T > Class Template Reference
provide a templatized Heap
More...
#include <vdkheap.h>
List of all members.
Public Member Functions
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:
- a default constructor: T::T()
- a copy initializer: T::T(T& t)
- an assignement operator: T& T::operator=(T& t)
- an equality and less-than operators:
- bool T::operator==(T& t)
- bool T::operator<(T& t)
- Implementation notes
- I suggest to use typedef's like:
Constructor & Destructor Documentation
Constructor makes an empty heap
Constructor
- Parameters:
-
| source | an array of type T obejcts |
| array | size |
Member Function Documentation
template<class T>
void VDKHeap< T >::Sort |
( |
void |
|
) |
[inline] |
The documentation for this class was generated from the following file: