Class prototype for nearest_traversal_cb_t