PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ query_accumulate()

static void query_accumulate ( void *  item,
void *  userdata 
)
static

Definition at line 139 of file lwgeom_geos_cluster.c.

140{
141 struct QueryContext *cxt = userdata;
142 if (!cxt->items_found)
143 {
144 cxt->items_found_size = 8;
145 cxt->items_found = lwalloc(cxt->items_found_size * sizeof(void*));
146 }
147
148 if (cxt->num_items_found >= cxt->items_found_size)
149 {
150 cxt->items_found_size = 2 * cxt->items_found_size;
151 cxt->items_found = lwrealloc(cxt->items_found, cxt->items_found_size * sizeof(void*));
152 }
153 cxt->items_found[cxt->num_items_found++] = item;
154}
void * lwrealloc(void *mem, size_t size)
Definition lwutil.c:242
void * lwalloc(size_t size)
Definition lwutil.c:227
uint32_t items_found_size

References QueryContext::items_found, QueryContext::items_found_size, lwalloc(), lwrealloc(), and QueryContext::num_items_found.

Referenced by dbscan_update_context(), and union_intersecting_pairs().

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