![]() |
nanoflann
C++ header-only ANN library
|
Public Attributes | |
union { | |
struct leaf { | |
Offset left | |
Offset right | |
Indices of points in leaf node. | |
} lr | |
struct nonleaf { | |
Dimension divfeat | |
Dimension used for subdivision. | |
DistanceType divlow | |
DistanceType divhigh | |
The values used for subdivision. | |
} sub | |
} | node_type |
Node * | child1 |
Node * | child2 |
Node* nanoflann::KDTreeBaseClass< Derived, Distance, DatasetAdaptor, DIM, AccessorType >::Node::child1 |
Child nodes (both=nullptr mean its a leaf node)
union { ... } nanoflann::KDTreeBaseClass< Derived, Distance, DatasetAdaptor, DIM, AccessorType >::Node::node_type |
Union used because a node can be either a LEAF node or a non-leaf node, so both data fields are never used simultaneously