27 #ifndef MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEAREST_H_
28 #define MPBLOCKS_KD_TREE_EUCLIDEAN_BLOCKS_KNEAREST_H_
38 template <
class Traits,
39 template<
class>
class Allocator = std::allocator >
46 typedef Eigen::Matrix<Format_t,Traits::NDim,1>
Point_t;
74 typename PQueue_t::const_iterator iKey;
75 for( iKey = list.begin(); iKey != list.end(); ++iKey )
102 #endif // NEARESTNEIGHBOR_H_
void search(const Point_t &q, unsigned int k)
euclidean::KNearest< Traits, Allocator > Search_t
Eigen::Matrix< Format_t, Traits::NDim, 1 > Point_t
KNearest< Traits, Allocator > This_t
void findNearest(const Point_t &q, NNIface_t &search)
generic NN search, specific search depends on the implementing class of the NNIface ...
std::set< Key_t, KeyCompare_t, Allocator_t > PQueue_t
sigc::signal< void, Node_t * > sig_result
sigc::slot< void, const Point_t &, unsigned int > slot_search()
Search_t::PQueue_t PQueue_t
const PQueue_t & result()
the node class must be defined in traits since it uses the CTRP, it must derive from kd_tree::Node<Tr...
void setTree(Tree_t *tree)
Traits::Format_t Format_t
double Format_t
number format (i.e. double, float)