Stride Reference Manual
- generated for commit 9643b11
|
A base class for all instantiations of a Node with D. More...
#include <KdNode.h>
Public Member Functions | |
virtual | ~BaseNode ()=default |
virtual BaseNode< P > * | BorrowLeft () const =0 |
Get a non-owning pointer to the left child (nullptr if no such child). More... | |
virtual BaseNode< P > * | BorrowRight () const =0 |
Get a non-owning pointer to the right child (nullptr if no such child). More... | |
virtual BaseNode< P > * | BorrowSplitChild (const P &point) const =0 |
Get a non-owning pointer to the child corresponding to the correct split for point. More... | |
virtual void | AddChild (P point)=0 |
Add a new child in the right place, according to split. More... | |
virtual P | GetPoint () const =0 |
Gets the point for this node. More... | |
A base class for all instantiations of a Node with D.
|
virtualdefault |
|
pure virtual |
Get a non-owning pointer to the left child (nullptr if no such child).
Implemented in geopop::kd::Node< P, D >, geopop::kd::Node< geogrid_detail::KdTree2DPoint, 0 >, and geopop::kd::Node< P, 0 >.
Referenced by geopop::KdTree< P >::Apply(), and geopop::KdTree< P >::GetHeight().
|
pure virtual |
Get a non-owning pointer to the right child (nullptr if no such child).
Implemented in geopop::kd::Node< P, D >, geopop::kd::Node< geogrid_detail::KdTree2DPoint, 0 >, and geopop::kd::Node< P, 0 >.
Referenced by geopop::KdTree< P >::Apply(), and geopop::KdTree< P >::GetHeight().
|
pure virtual |
Get a non-owning pointer to the child corresponding to the correct split for point.
Implemented in geopop::kd::Node< P, D >, geopop::kd::Node< geogrid_detail::KdTree2DPoint, 0 >, and geopop::kd::Node< P, 0 >.
Referenced by geopop::KdTree< P >::Apply(), and geopop::KdTree< P >::Insert().
|
pure virtual |
Add a new child in the right place, according to split.
Implemented in geopop::kd::Node< P, D >, geopop::kd::Node< geogrid_detail::KdTree2DPoint, 0 >, and geopop::kd::Node< P, 0 >.
Referenced by geopop::KdTree< P >::Insert().
|
pure virtual |
Gets the point for this node.
Implemented in geopop::kd::Node< P, D >, geopop::kd::Node< geogrid_detail::KdTree2DPoint, 0 >, and geopop::kd::Node< P, 0 >.
Referenced by geopop::KdTree< P >::Apply().