A class to find Models that are neighbors of some input. More...
#include <neighbor_finder.h>
Public Member Functions | |
virtual bool | Find (const Query &, const int, vector< pair< Model *, double > > *) const |
virtual | ~NeighborFinder () |
A class to find Models that are neighbors of some input.
Definition at line 42 of file neighbor_finder.h.
virtual db_planner::NeighborFinder< Query >::~NeighborFinder | ( | ) | [inline, virtual] |
Definition at line 54 of file neighbor_finder.h.
virtual bool db_planner::NeighborFinder< Query >::Find | ( | const Query & | , | |
const | int, | |||
vector< pair< Model *, double > > * | ||||
) | const [inline, virtual] |
This virtual function finds neighboring models to a given Model. This base version always fails regardless of input. WARNING: "num_neighbors" is decieving - implementations should returns from num_neighbors to 2 x num_neighbors results, because whenever possible neighbors should be duplicated at the scale above and below the given Model.
Reimplemented in db_planner::CachingNeighborFinder.
Definition at line 49 of file neighbor_finder.h.