|
Stride Reference Manual
- generated for commit 9643b11
|
A node in the KdTree (parameter P: the type of point, parameter D: dimension this node splits on). More...
#include <KdNode.h>


Public Member Functions | |
| Node (P pt) | |
| BaseNode< P > * | BorrowLeft () const override |
| Get a non-owning pointer to the left child (nullptr if no such child). More... | |
| BaseNode< P > * | BorrowRight () const override |
| Get a non-owning pointer to the right child (nullptr if no such child). More... | |
| BaseNode< P > * | BorrowSplitChild (const P &point) const override |
| Get a non-owning pointer to the child corresponding to the correct split for point. More... | |
| void | AddChild (P point) override |
| Add a new child in the right place, according to split. More... | |
| P | GetPoint () const override |
| Gets the point for this node. More... | |
Public Member Functions inherited from geopop::kd::BaseNode< P > | |
| virtual | ~BaseNode ()=default |
Private Types | |
| using | Child = Node< P,(D+1)%P::dim > |
Private Attributes | |
| P | m_point |
| std::unique_ptr< Child > | m_left |
| std::unique_ptr< Child > | m_right |
Friends | |
| class | KdTree< P > |
A node in the KdTree (parameter P: the type of point, parameter D: dimension this node splits on).
|
private |
|
inlineexplicit |
|
inlineoverridevirtual |
Get a non-owning pointer to the left child (nullptr if no such child).
Implements geopop::kd::BaseNode< P >.
|
inlineoverridevirtual |
Get a non-owning pointer to the right child (nullptr if no such child).
Implements geopop::kd::BaseNode< P >.
|
inlineoverridevirtual |
Get a non-owning pointer to the child corresponding to the correct split for point.
Implements geopop::kd::BaseNode< P >.
|
inlineoverridevirtual |
Add a new child in the right place, according to split.
Implements geopop::kd::BaseNode< P >.
|
inlineoverridevirtual |
Gets the point for this node.
Implements geopop::kd::BaseNode< P >.
|
friend |
|
private |
|
private |
|
private |