Template Class TreePriorityQueue
Defined in File TreePriorityQueue.h
Class Documentation
-
template<class T, std::totally_ordered P = int>
class TreePriorityQueue a priority queue on a Red-Black tree
Public Types
-
using Handle = long
the number of insertion of an item
-
using value_type = typename RedBlackTree<Key, T>::value_type
-
using const_iterator = typename RedBlackTree<Key, T>::const_iterator
-
using iterator = const_iterator
Public Functions
-
bool empty(void) const
-
int size(void) const
-
void decrease(Handle y, const P &p)
- Pre:
y is an item still in the queue and p is not larger than its priority
-
inline const_iterator begin(void) const
-
inline const_iterator end(void) const
-
inline const_iterator cbegin(void) const
-
inline const_iterator cend(void) const
-
using Handle = long