OpenTTD Source 20241224-master-gee860a5c8e
|
Type of a node in the tree. More...
Public Member Functions | |
node (T element) | |
Data Fields | |
T | element |
Element stored at node. | |
size_t | left |
Index of node to the left, INVALID_NODE if none. | |
size_t | right |
Index of node to the right, INVALID_NODE if none. | |
Type of a node in the tree.
Definition at line 37 of file kdtree.hpp.
|
inline |
Definition at line 42 of file kdtree.hpp.
T Kdtree< T, TxyFunc, CoordT, DistT >::node::element |
Element stored at node.
Definition at line 38 of file kdtree.hpp.
Referenced by Kdtree< T, TxyFunc, CoordT, DistT >::CheckInvariant(), Kdtree< T, TxyFunc, CoordT, DistT >::CountValue(), Kdtree< T, TxyFunc, CoordT, DistT >::FindNearestRecursive(), Kdtree< T, TxyFunc, CoordT, DistT >::FreeSubtree(), Kdtree< T, TxyFunc, CoordT, DistT >::InsertRecursive(), and Kdtree< T, TxyFunc, CoordT, DistT >::RemoveRecursive().
size_t Kdtree< T, TxyFunc, CoordT, DistT >::node::left |
Index of node to the left, INVALID_NODE if none.
Definition at line 39 of file kdtree.hpp.
Referenced by Kdtree< T, TxyFunc, CoordT, DistT >::CheckInvariant(), Kdtree< T, TxyFunc, CoordT, DistT >::CountValue(), Kdtree< T, TxyFunc, CoordT, DistT >::FindNearestRecursive(), Kdtree< T, TxyFunc, CoordT, DistT >::FreeSubtree(), Kdtree< T, TxyFunc, CoordT, DistT >::InsertRecursive(), and Kdtree< T, TxyFunc, CoordT, DistT >::RemoveRecursive().
size_t Kdtree< T, TxyFunc, CoordT, DistT >::node::right |
Index of node to the right, INVALID_NODE if none.
Definition at line 40 of file kdtree.hpp.
Referenced by Kdtree< T, TxyFunc, CoordT, DistT >::CheckInvariant(), Kdtree< T, TxyFunc, CoordT, DistT >::CountValue(), Kdtree< T, TxyFunc, CoordT, DistT >::FindNearestRecursive(), Kdtree< T, TxyFunc, CoordT, DistT >::FreeSubtree(), Kdtree< T, TxyFunc, CoordT, DistT >::InsertRecursive(), and Kdtree< T, TxyFunc, CoordT, DistT >::RemoveRecursive().