Geant4 10.7.0
Toolkit for the simulation of the passage of particles through matter
|
#include <G4KDNode.hh>
Public Member Functions | |
G4KDNode_Base (G4KDTree *, G4KDNode_Base *) | |
virtual | ~G4KDNode_Base () |
virtual double | operator[] (size_t) const =0 |
virtual void | InactiveNode () |
virtual bool | IsValid () const |
G4KDTree * | GetTree () const |
void | SetTree (G4KDTree *tree) |
int | GetDim () const |
int | GetAxis () const |
G4KDNode_Base * | GetParent () |
G4KDNode_Base * | GetLeft () |
G4KDNode_Base * | GetRight () |
template<typename Position > | |
G4KDNode_Base * | FindParent (const Position &x0) |
template<typename PointT > | |
G4KDNode_Base * | Insert (PointT *point) |
template<typename PointT > | |
G4KDNode_Base * | Insert (const PointT &point) |
int | Insert (G4KDNode_Base *newNode) |
void | PullSubTree () |
void | RetrieveNodeList (std::list< G4KDNode_Base * > &node_list) |
void | Print (std::ostream &out, int level=0) const |
Protected Attributes | |
size_t | fAxis |
int | fSide |
G4KDTree * | fTree |
G4KDNode_Base * | fLeft |
G4KDNode_Base * | fRight |
G4KDNode_Base * | fParent |
Definition at line 61 of file G4KDNode.hh.
G4KDNode_Base::G4KDNode_Base | ( | G4KDTree * | tree, |
G4KDNode_Base * | parent | ||
) |
Definition at line 71 of file G4KDNode.cc.
|
virtual |
Definition at line 102 of file G4KDNode.cc.
G4KDNode_Base * G4KDNode_Base::FindParent | ( | const Position & | x0 | ) |
Referenced by Insert().
|
inline |
int G4KDNode_Base::GetDim | ( | ) | const |
Definition at line 111 of file G4KDNode.cc.
|
inline |
|
inline |
Definition at line 80 of file G4KDNode.hh.
|
inline |
|
inline |
Definition at line 74 of file G4KDNode.hh.
|
virtual |
Reimplemented in G4KDNode< PointT >, and G4KDNodeCopy< PointCopyT >.
Definition at line 106 of file G4KDNode.cc.
Referenced by G4KDNode< PointT >::InactiveNode(), G4KDNodeCopy< PointCopyT >::InactiveNode(), and InactiveNode().
G4KDNode_Base * G4KDNode_Base::Insert | ( | const PointT & | point | ) |
int G4KDNode_Base::Insert | ( | G4KDNode_Base * | newNode | ) |
Definition at line 119 of file G4KDNode.cc.
G4KDNode_Base * G4KDNode_Base::Insert | ( | PointT * | point | ) |
Referenced by G4KDTree::Build().
|
inlinevirtual |
Reimplemented in G4KDNode< PointT >, and G4KDNodeCopy< PointCopyT >.
Definition at line 71 of file G4KDNode.hh.
|
pure virtual |
Implemented in G4KDNode< PointT >, and G4KDNodeCopy< PointCopyT >.
void G4KDNode_Base::Print | ( | std::ostream & | out, |
int | level = 0 |
||
) | const |
Definition at line 177 of file G4KDNode.cc.
Referenced by Print(), and G4KDTree::Print().
void G4KDNode_Base::PullSubTree | ( | ) |
Definition at line 146 of file G4KDNode.cc.
Referenced by PullSubTree().
void G4KDNode_Base::RetrieveNodeList | ( | std::list< G4KDNode_Base * > & | node_list | ) |
Definition at line 166 of file G4KDNode.cc.
Referenced by RetrieveNodeList().
|
inline |
Definition at line 75 of file G4KDNode.hh.
|
protected |
Definition at line 108 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetAxis(), and Insert().
|
protected |
Definition at line 116 of file G4KDNode.hh.
Referenced by GetLeft(), Insert(), Print(), PullSubTree(), and RetrieveNodeList().
|
protected |
Definition at line 116 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetParent(), Insert(), and PullSubTree().
|
protected |
Definition at line 116 of file G4KDNode.hh.
Referenced by GetRight(), Insert(), Print(), PullSubTree(), and RetrieveNodeList().
|
protected |
Definition at line 109 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), Insert(), and PullSubTree().
|
protected |
Definition at line 115 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetDim(), GetTree(), InactiveNode(), Insert(), PullSubTree(), and SetTree().