struct mp2p_icp::NearestCellCapable::CellQuery

Overview

Result of nn_search_cell().

#include <NearestCellCapable.h>

struct CellQuery
{
    // fields

    const CellRef* cell = nullptr;
    bool supported = false;
    bool from_neighbor = false;
};

Fields

const CellRef* cell = nullptr

The active cell to pair with, or nullptr.

bool supported = false

Whether the map holds statistics where it looked (the own cell or, with the fallback, any of the neighbors searched), active or not, and whether or not one was close enough to be returned. No cell but support means the query fell next to statistics it cannot be paired with yet (not mature, or no active one close enough), so a matcher can leave it out of its pairing ratio; no support means it fell outside the map.

bool from_neighbor = false

Whether cell is a neighbor of the query’s own cell.