single_tree_traverser.hpp
Go to the documentation of this file.00001
00024 #ifndef __MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP
00025 #define __MLPACK_CORE_TREE_COVER_TREE_SINGLE_TREE_TRAVERSER_HPP
00026
00027 #include <mlpack/core.hpp>
00028
00029 #include "cover_tree.hpp"
00030
00031 namespace mlpack {
00032 namespace tree {
00033
00034 template<typename MetricType, typename RootPointPolicy, typename StatisticType>
00035 template<typename RuleType>
00036 class CoverTree<MetricType, RootPointPolicy, StatisticType>::SingleTreeTraverser
00037 {
00038 public:
00042 SingleTreeTraverser(RuleType& rule);
00043
00051 void Traverse(const size_t queryIndex, CoverTree& referenceNode);
00052
00054 size_t NumPrunes() const { return numPrunes; }
00056 size_t& NumPrunes() { return numPrunes; }
00057
00058 private:
00060 RuleType& rule;
00061
00063 size_t numPrunes;
00064 };
00065
00066 };
00067 };
00068
00069
00070 #include "single_tree_traverser_impl.hpp"
00071
00072 #endif