25 #ifndef _TPIE_PQ_MERGE_HEAP_H_
26 #define _TPIE_PQ_MERGE_HEAP_H_
40 template<
typename T,
typename Comparator = std::less<T> >
43 typedef memory_size_type run_type;
63 void push(
const T& x, run_type run);
98 memory_size_type
size()
const;
112 memory_size_type m_size;
117 memory_size_type maxsize;
120 #include "pq_merge_heap.inl"
bool empty() const
Return true if queue is empty, otherwise false.
const T & top() const
See what's on the top of the priority queue.
Memory management subsystem.
void pop()
Remove the top element from the priority queue.
Logging functionality and log_level codes for different priorities of log messages.
void pop_and_push(const T &x, run_type run)
Remove the top element from the priority queue and insert another.
void push(const T &x, run_type run)
Insert an element into the priority queue.
pq_merge_heap(memory_size_type elements)
Constructor.
run_type top_run() const
Return top element run number.
memory_size_type size() const
Returns the size of the queue.
~pq_merge_heap()
Destructor.