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

◆ clear()

template<template< typename > class Queue>
void NaivePolynomialHeap< Queue >::clear ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 379 of file NCReduction.cpp.

379 {
380 // clear the heap. The free algebra is kept the same
381 // but all other aspects are reset. The MonomialSpace
382 // has all its data freed to the arena, but is available for
383 // use without any new allocations for the next computation.
384 mLeadTermSet = false;
385 mQueue.clear();
386 mMonomialSpace.deallocateAll();
387 }
Queue< NaiveQueueConfiguration > mQueue
MemoryBlock mMonomialSpace

References mLeadTermSet, mMonomialSpace, and mQueue.