Lines Matching refs:pqueue
294 PQueueElem* pqueue = (PQueueElem*)(uchar*)_pqueue; in findNearest() local
309 nidx = pqueue[0].idx; in findNearest()
310 alt_d = pqueue[0].dist; in findNearest()
313 std::swap(pqueue[0], pqueue[qsize]); in findNearest()
314 d = pqueue[0].dist; in findNearest()
320 if( right < qsize && pqueue[right].dist < pqueue[left].dist ) in findNearest()
322 if( pqueue[left].dist >= d ) in findNearest()
324 std::swap(pqueue[i], pqueue[left]); in findNearest()
388 pqueue[qsize] = PQueueElem(d, alt); in findNearest()
392 if( parent < 0 || pqueue[parent].dist <= d ) in findNearest()
394 std::swap(pqueue[i], pqueue[parent]); in findNearest()