| |
container Data.
| |
| |
container Window.
| |
| |
container Traits.
|
#include <CGAL/Range_tree_d.h>
| |||||
A range tree is constructed, such that the subtree of each vertex
is of the same type prototype sublayer_tree is. We assume that the dimension of the tree is . This means, that sublayer_tree is a prototype of a -dimensional tree. All data items of the -dimensional range tree have container type Data. The query window of the tree has container type Window. Traits provides access to the corresponding data slots of container Data and Window for the -th dimension. The traits class Traits must at least provide all functions and type definitions as described in Section ![]() Precondition: Traits::Data==Data and\ Traits::Window==Window.
|
| ||||||
|
| |||||
The tree is constructed according to the data items in the sequence between the element pointed by iterator first and iterator last. The data items of the iterator must have type Data. |
Precondition: This function can only be called
once. If it is the first call the tree is build and true is
returned. Otherwise, nothing is done but a CGAL warning is given
and false returned.
| ||
|
| |
win , , . All elements that lay inside the -dimensional interval defined through win are placed in the sequence container of OutputIterator; the output iterator that points to the last location the function wrote to is returned. | ||
|
| The tree structure is checked. For each vertex the subtree is checked on being valid and it is checked weather the value of the Key_type of a vertex corresponds to the highest Key_type value of the left subtree. |
Protected Operations
|
| |
returns true, if the data of object lies between the start and endpoint of interval win. False otherwise. | ||
|
| returns false. |