PostGIS  2.3.7dev-r@@SVN_REVISION@@
static void quantile_llist_index_delete ( struct quantile_llist qll,
struct quantile_llist_element qle 
)
static

Definition at line 919 of file rt_statistics.c.

References quantile_llist_index::element, quantile_llist::index, quantile_llist_index::index, quantile_llist::index_max, RASTER_DEBUGF, and quantile_llist_element::value.

Referenced by rt_band_get_quantiles_stream().

919  {
920  uint32_t i = 0;
921 
922  for (i = 0; i < qll->index_max; i++) {
923  if (
924  NULL == qll->index[i].element ||
925  (qll->index[i].element) != qle
926  ) {
927  continue;
928  }
929 
930  RASTER_DEBUGF(5, "deleting index: %d => %f", i, qle->value);
931  qll->index[i].index = -1;
932  qll->index[i].element = NULL;
933  }
934 }
struct quantile_llist_element * element
Definition: librtcore.h:2381
uint32_t index_max
Definition: librtcore.h:2366
#define RASTER_DEBUGF(level, msg,...)
Definition: librtcore.h:311
struct quantile_llist_index * index
Definition: librtcore.h:2365

Here is the caller graph for this function: