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

◆ value()

template<class FREEMODULETYPE, class VECTYPE>
VECTYPE geobucket< FREEMODULETYPE, VECTYPE >::value ( )
inline

Definition at line 175 of file geobucket.hpp.

176{
178 for (int i=0; i<=top_of_heap; i++)
179 {
180 if (heap[i] == NULL) continue;
181 F->add_to(result, heap[i]);
182 heap[i] = NULL;
183 }
184 top_of_heap = -1;
185 return result;
186}
VECTYPE heap[GEOHEAP_SIZE]
Definition geobucket.hpp:56
FREEMODULETYPE * F
Definition geobucket.hpp:54
int top_of_heap
Definition geobucket.hpp:57

References F, heap, result(), and top_of_heap.