OpenTTD Source 20241224-master-gee860a5c8e
Kdtree< T, TxyFunc, CoordT, DistT >::node Struct Reference

Type of a node in the tree. More...

Public Member Functions

 node (T element)
 

Data Fields

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.
 

Detailed Description

template<typename T, typename TxyFunc, typename CoordT, typename DistT>
struct Kdtree< T, TxyFunc, CoordT, DistT >::node

Type of a node in the tree.

Definition at line 37 of file kdtree.hpp.

Constructor & Destructor Documentation

◆ node()

template<typename T , typename TxyFunc , typename CoordT , typename DistT >
Kdtree< T, TxyFunc, CoordT, DistT >::node::node ( element)
inline

Definition at line 42 of file kdtree.hpp.

Field Documentation

◆ element

◆ left

template<typename T , typename TxyFunc , typename CoordT , typename DistT >
size_t Kdtree< T, TxyFunc, CoordT, DistT >::node::left

◆ right

template<typename T , typename TxyFunc , typename CoordT , typename DistT >
size_t Kdtree< T, TxyFunc, CoordT, DistT >::node::right

The documentation for this struct was generated from the following file: