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

◆ clear()

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

Implements PolynomialHeap.

Definition at line 521 of file NCReduction.cpp.

521 {
522 // clear the heap. The free algebra is kept the same
523 // but all other aspects are reset. The MonomialSpace
524 // has all its data freed to the arena, but is available for
525 // use without any new allocations for the next computation.
526 mQueue.clear();
527 mMonomialSpace.deallocateAll();
528 }
Queue< NaiveDedupQueueConfiguration > mQueue

References mMonomialSpace, and mQueue.