PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ quantile_llist_index_delete()

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.

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 }
#define RASTER_DEBUGF(level, msg,...)
Definition: librtcore.h:299
struct quantile_llist_element * element
Definition: librtcore.h:2418
uint32_t index_max
Definition: librtcore.h:2403
struct quantile_llist_index * index
Definition: librtcore.h:2402
unsigned int uint32_t
Definition: uthash.h:78

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().

Here is the caller graph for this function: