PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ initiate_minheap()

static MINHEAP initiate_minheap ( int  npoints)

Definition at line 51 of file effectivearea.c.

References MINHEAP::key_array, lwalloc(), MINHEAP::maxSize, and MINHEAP::usedSize.

Referenced by tune_areas().

52 {
53  MINHEAP tree;
54  tree.key_array = lwalloc(npoints*sizeof(void*));
55  tree.maxSize=npoints;
56  tree.usedSize=0;
57  return tree;
58 }
This structure holds a minheap tree that is used to keep track of what points that has the smallest e...
Definition: effectivearea.h:52
int maxSize
Definition: effectivearea.h:54
int usedSize
Definition: effectivearea.h:55
areanode ** key_array
Definition: effectivearea.h:56
void * lwalloc(size_t size)
Definition: lwutil.c:229
Here is the call graph for this function:
Here is the caller graph for this function: