Macaulay2 Engine
Loading...
Searching...
No Matches

◆ clear()

void PriorityQueuePolynomialHeap::clear ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 983 of file NCReduction.cpp.

983 {
984 // clear the heap. The free algebra is kept the same
985 // but all other aspects are reset. The MonomialSpace
986 // has all its data freed to the arena, but is available for
987 // use without any new allocations for the next computation.
988 mLeadTermSet = false;
989 while (!mQueue.empty())
990 mQueue.pop();
991 mMonomialSpace.deallocateAll();
992 }
std::priority_queue< Entry, Container, EntryConfig > mQueue

References mLeadTermSet, mMonomialSpace, and mQueue.