00001 // 00002 // GraspIt! 00003 // Copyright (C) 2002-2009 Columbia University in the City of New York. 00004 // All rights reserved. 00005 // 00006 // GraspIt! is free software: you can redistribute it and/or modify 00007 // it under the terms of the GNU General Public License as published by 00008 // the Free Software Foundation, either version 3 of the License, or 00009 // (at your option) any later version. 00010 // 00011 // GraspIt! is distributed in the hope that it will be useful, 00012 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 // GNU General Public License for more details. 00015 // 00016 // You should have received a copy of the GNU General Public License 00017 // along with GraspIt!. If not, see <http://www.gnu.org/licenses/>. 00018 // 00019 // Author(s): Corey Goldfeder 00020 // 00021 // $Id: neighbor_finder.h,v 1.3 2009/06/17 18:57:15 coreyg Exp $ 00022 // 00023 //###################################################################### 00024 00029 #ifndef DB_PLANNER_NEIGHBOR_FINDER_H 00030 #define DB_PLANNER_NEIGHBOR_FINDER_H 00031 00032 #include <vector> 00033 #include <utility> 00034 #include "model.h" 00035 using std::pair; 00036 using std::vector; 00037 00038 namespace db_planner { 00039 00041 template <class Query> 00042 class NeighborFinder { 00043 public: 00049 virtual bool Find(const Query& /*query*/, 00050 const int /*num_neighbors*/, 00051 vector<pair<Model*, double> >* /*neighbors*/) const { 00052 return false; 00053 }; 00054 virtual ~NeighborFinder() {} 00055 }; 00056 00057 00058 } // end namespace db_planner 00059 00060 00061 #endif // DB_PLANNER_NEIGHBOR_FINDER_H