The Kdtree_d class is parameterized with the interface class Traits which defines the abstract interface between the Kdtree_d class and the data (i.e., points). The following requirement catalog lists the primitives, i.e., types, member functions etc., that must be defined for a class that can be used to parameterize kd-trees. Ready-made implementation are available by the Kdtree_d default traits classes.
|
| |
|
A type to hold a input item.
| |
|
| ||
|
| ||
| compare the k-th coordinate of and . Return LARGER if , SMALLER if , or else EQUAL. | ||
|
|
| |
| Copy the -th coordinate of to the -th coordinate of . | ||
|
|
| |
| return the dimension of pnt | ||