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