Class LazyPQ¶
- Defined in File utils.hpp
Class Documentation¶
-
class
LazyPQ¶ The idea behind this class is to create a structure similar to a priority queue that allows elements to be removed from the middle of the queue as well, rather than just the top.
Public Functions
-
void
insert(const NodeKeyPair &t)¶ Insert into the LazyPQ.
- Return
- void
-
const NodeKeyPair &
top() const¶ Returns the top element of the LazyPQ.
- Return
- reference to the top value in the LazyPQ
-
bool
isElementInStruct(const NodeKeyPair &t) const¶ Checks whether the element is in the LazyPQ.
- Return
- bool whether the element is in the LazyPQ
-
void
remove(const NodeKeyPair &t)¶ Remove an element from the LazyPQ if it exists.
- Return
- void
-
void