PostGIS  2.2.8dev-r@@SVN_REVISION@@

◆ initiate_minheap()

static MINHEAP initiate_minheap ( int  npoints)
static

Definition at line 37 of file effectivearea.c.

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

Referenced by tune_areas().

38 {
39  MINHEAP tree;
40  tree.key_array = lwalloc(npoints*sizeof(void*));
41  tree.maxSize=npoints;
42  tree.usedSize=0;
43  return tree;
44 }
This structure holds a minheap tree that is used to keep track of what points that has the smallest e...
Definition: effectivearea.h:38
int maxSize
Definition: effectivearea.h:40
int usedSize
Definition: effectivearea.h:41
areanode ** key_array
Definition: effectivearea.h:42
void * lwalloc(size_t size)
Definition: lwutil.c:199
Here is the call graph for this function:
Here is the caller graph for this function: