PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ initiate_minheap()

static MINHEAP initiate_minheap ( int  npoints)
static

Definition at line 51 of file effectivearea.c.

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

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

Referenced by tune_areas().

Here is the call graph for this function:
Here is the caller graph for this function: