23#ifndef AlpsPriorityQueue_h_
24#define AlpsPriorityQueue_h_
28#include "CoinHelperFunctions.hpp"
91 class Container = std::vector<T>,
92 class Compare = std::less<typename Container::value_type> >
AlpsPriorityQueue(AlpsSearchStrategy< T > &compare)
bool empty() const
Return true for an empty vector.
void clear()
Remove all elements from the vector.
AlpsPriorityQueue & operator=(const AlpsPriorityQueue &)
void setComparison(AlpsSearchStrategy< T > &c)
Set comparison function and resort heap.
const std::vector< T > & getContainer() const
Return a const reference to the container.
size_t size() const
Return the size of the vector.
AlpsPriorityQueue(const AlpsPriorityQueue &)
AlpsCompare< T > comparison_
void pop()
Remove the top element from the heap.
T top() const
Return the top element of the heap.
void push(T x)
Add a element to the heap.