Files Class List
cyHeap.h File Reference

Detailed Description

A general-purpose heap class.

Author
Cem Yuksel

This file includes a general-purpose heap class.

#include <cassert>
#include <cstdint>
#include "cyCore.h"

Classes

class  Heap< MAX_HEAP, DATA_TYPE, SIZE_TYPE >
 A general-purpose heap structure that allows random access and updates. More...
 

Typedefs

template<typename DATA_TYPE , typename SIZE_TYPE = size_t>
using MaxHeap = Heap<true, DATA_TYPE,SIZE_TYPE>
 A general-purpose max-heap structure that allows random access and updates.
 
template<typename DATA_TYPE , typename SIZE_TYPE = size_t>
using MinHeap = Heap<false,DATA_TYPE,SIZE_TYPE>
 A general-purpose min-heap structure that allows random access and updates.
 
template<bool MAX_HEAP, typename DATA_TYPE , typename SIZE_TYPE = size_t>
using cyHeap = cy::Heap<MAX_HEAP,DATA_TYPE,SIZE_TYPE>
 A general-purpose heap structure that allows random access and updates.
 
template<typename DATA_TYPE , typename SIZE_TYPE = size_t>
using cyMaxHeap = cy::Heap<true, DATA_TYPE,SIZE_TYPE>
 A general-purpose max-heap structure that allows random access and updates.
 
template<typename DATA_TYPE , typename SIZE_TYPE = size_t>
using cyMinHeap = cy::Heap<false, DATA_TYPE,SIZE_TYPE>
 A general-purpose min-heap structure that allows random access and updates.