Geant4
10.01.p03
|
#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) |
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 |
Private Member Functions | |
G4KDNode_Base (const G4KDNode_Base &right) | |
G4KDNode_Base & | operator= (const G4KDNode_Base &right) |
Definition at line 64 of file G4KDNode.hh.
G4KDNode_Base::G4KDNode_Base | ( | G4KDTree * | tree, |
G4KDNode_Base * | parent | ||
) |
Definition at line 72 of file G4KDNode.cc.
References fAxis, G4KDTree::fDim, fParent, fSide, and fTree.
|
virtual |
Definition at line 103 of file G4KDNode.cc.
|
private |
Definition at line 82 of file G4KDNode.cc.
G4KDNode_Base* G4KDNode_Base::FindParent | ( | const Position & | x0 | ) |
|
inline |
Definition at line 82 of file G4KDNode.hh.
References fAxis.
Referenced by G4KDMap::PopOutMiddle().
int G4KDNode_Base::GetDim | ( | ) | const |
Definition at line 112 of file G4KDNode.cc.
References fTree, and G4KDTree::GetDim().
|
inline |
Definition at line 84 of file G4KDNode.hh.
References fLeft.
Referenced by G4KDTree::__Clear_Rec().
|
inline |
Definition at line 83 of file G4KDNode.hh.
References fParent.
|
inline |
Definition at line 85 of file G4KDNode.hh.
References fRight.
Referenced by G4KDTree::__Clear_Rec().
|
inline |
Definition at line 77 of file G4KDNode.hh.
References fTree.
|
virtual |
Reimplemented in G4KDNode< PointT >.
Definition at line 107 of file G4KDNode.cc.
References fTree, and G4KDTree::NoticeNodeDeactivation().
Referenced by InactiveNode(), and G4KDNode< PointT >::InactiveNode().
G4KDNode_Base* G4KDNode_Base::Insert | ( | PointT * | point | ) |
int G4KDNode_Base::Insert | ( | G4KDNode_Base * | newNode | ) |
Definition at line 120 of file G4KDNode.cc.
References fAxis, FindParent(), fLeft, fParent, fRight, fSide, fTree, and G4KDTree::GetDim().
|
inlinevirtual |
Reimplemented in G4KDNode< PointT >.
Definition at line 74 of file G4KDNode.hh.
|
private |
|
pure virtual |
Implemented in G4KDNode< PointT >.
void G4KDNode_Base::Print | ( | std::ostream & | out, |
int | level = 0 |
||
) | const |
Definition at line 178 of file G4KDNode.cc.
References fLeft, fRight, G4endl, and Print().
Referenced by G4KDTree::Print(), and Print().
void G4KDNode_Base::PullSubTree | ( | ) |
void G4KDNode_Base::RetrieveNodeList | ( | std::list< G4KDNode_Base * > & | node_list | ) |
Definition at line 167 of file G4KDNode.cc.
References fLeft, fRight, and RetrieveNodeList().
Referenced by RetrieveNodeList().
|
inline |
Definition at line 78 of file G4KDNode.hh.
References fTree.
|
protected |
Definition at line 104 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetAxis(), Insert(), and operator=().
|
protected |
Definition at line 112 of file G4KDNode.hh.
Referenced by GetLeft(), Insert(), operator=(), Print(), PullSubTree(), and RetrieveNodeList().
|
protected |
Definition at line 112 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetParent(), Insert(), operator=(), and PullSubTree().
|
protected |
Definition at line 112 of file G4KDNode.hh.
Referenced by GetRight(), Insert(), operator=(), Print(), PullSubTree(), and RetrieveNodeList().
|
protected |
Definition at line 105 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), Insert(), operator=(), and PullSubTree().
|
protected |
Definition at line 111 of file G4KDNode.hh.
Referenced by G4KDNode_Base(), GetDim(), GetTree(), InactiveNode(), Insert(), operator=(), PullSubTree(), and SetTree().