#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.
|
advanced |
| |
A handle with value type Kd_tree_node<Traits,Splitter>.
| |
| |
Random access iterator
with value type Point_d*.
|
advanced |
| |
Constructs an empty - tree.
| |
| |
| |
Constructs a - 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 - tree. |
| ||
|
| |
Inserts the elements from the sequence [first, beyond) in the - 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 - tree. |
|
| Returns the number of points that are stored in the tree. |
advanced |
|
| 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. |
advanced |