Rosetta
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
construct_kdtree.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file numeric/kdtree/kdtree.hh
11 /// @brief functions for creating a kdtree
12 /// @author James Thompson
13 
14 #ifndef INCLUDED_numeric_kdtree_construct_kdtree_hh
15 #define INCLUDED_numeric_kdtree_construct_kdtree_hh
16 
17 #include <numeric/types.hh>
18 
22 
23 #include <utility/vector1.hh>
24 
25 namespace numeric {
26 namespace kdtree {
27 
28 /// @brief Function for constructing a KDTree. Returns a KDNodeOP that
29 /// represents the root of the tree. Points need to be sorted as the
30 /// tree is being constructed, so the reference to the points is non-const.
33  numeric::Size depth,
34  KDTree & tree
35 );
36 
37 } // kdtree
38 } // numeric
39 
40 #endif
platform::Size Size
Definition: types.hh:42
utility::pointer::shared_ptr< KDNode > KDNodeOP
Definition: KDNode.fwd.hh:22
forward declaration for KDNode class.
rosetta project type declarations. Should be kept updated with core/types.hh. This exists because num...
forward declaration for KDTree class.
vector1: std::vector with 1-based indexing
KDNodeOP construct_kd_tree(utility::vector1< KDPointOP > &points, numeric::Size depth, KDTree &tree)
Function for constructing a KDTree. Returns a KDNodeOP that represents the root of the tree...
forward declaration for KDPoint class.