![]()  | 
#include <CGAL/Kd_tree.h>
Expects for the first template argument a model of the concept SearchTraits, for example CGAL::Search_traits_2<CGAL::Cartesian<double> >.
Excepts for the second template argument a model for the concept Splitter. It defaults to Sliding_midpoint<Traits>.
Expects for the third template argument CGAL::Tag_true, if the tree shall be built with extended nodes, and CGAL::Tag_false otherwise.
| 
         | 
         | Point class. | 
| 
         | 
         | Number type. | 
| 
         | |
| 
    Splitter type.
 
  | |
| 
         | |
| 
    Bidirectional iterator with value type Point_d that allows
	to enumerate all points in the tree.
 
  | |
| 
         | |
| 
    A handle with value type Kd_tree_node<Traits,Splitter>.
 
  | |
| 
         | |
| 
    Random access iterator 
with value type Point_d*.
 
  | |
| 
         | |
| 
    Constructs an empty k-d tree.
 
  | |
| 
         | |
| 
         | |
| 
    Constructs a k-d tree on the elements from the sequence 
[first, beyond) using the splitting rule implemented by s. 
The value type of the InputIterator must be Point_d.
 
  | |
| 
         | 
         | Inserts the point p in the k-d tree. | 
| 
         | ||
| 
         | 
         | |
| Inserts the elements from the sequence [first, beyond) in the k-d tree. The value type of the InputIterator must be Point_d. | ||
| 
         | ||
| 
         | 
         | |
| Reports the points that are approximately contained by q. The types FuzzyQueryItem::Point_d and Point_d must be equivalent. | ||
| 
         | 
         | Returns an iterator to the first point in the tree. | 
| 
         | 
         | Returns the corresponding past-the-end iterator. | 
| 
         | 
         | Removes all points from the k-d tree. | 
| 
         | 
         | Returns the number of points that are stored in the tree. | 
| 
         | 
         | Returns a handle to the root node of the tree. | 
| 
         | 
         | returns a const reference to the bounding box of the root node of the tree. | 
| 
         | 
         | |
| Inserts statistics of the tree into the output stream s. | ||