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

◆ clear()

void MapPolynomialHeap::clear ( )
inlineoverridevirtual

Implements PolynomialHeap.

Definition at line 635 of file NCReduction.cpp.

635 {
636 // clear the heap. The free algebra is kept the same
637 // but all other aspects are reset. The MonomialSpace
638 // has all its data freed to the arena, but is available for
639 // use without any new allocations for the next computation.
640 mMap.clear();
641 mMonomialSpace.deallocateAll();
642 }
MemoryBlock mMonomialSpace
std::map< Monom, ring_elem, MonomEq, gc_allocator< ConstEntry > > mMap

References mMap, and mMonomialSpace.