Geant4  10.01.p03
G4KDNode_Base Class Referenceabstract

#include <G4KDNode.hh>

+ Inheritance diagram for G4KDNode_Base:
+ Collaboration diagram for G4KDNode_Base:

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
 
G4KDTreeGetTree () const
 
void SetTree (G4KDTree *tree)
 
int GetDim () const
 
int GetAxis () const
 
G4KDNode_BaseGetParent ()
 
G4KDNode_BaseGetLeft ()
 
G4KDNode_BaseGetRight ()
 
template<typename Position >
G4KDNode_BaseFindParent (const Position &x0)
 
template<typename PointT >
G4KDNode_BaseInsert (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
 
G4KDTreefTree
 
G4KDNode_BasefLeft
 
G4KDNode_BasefRight
 
G4KDNode_BasefParent
 

Private Member Functions

 G4KDNode_Base (const G4KDNode_Base &right)
 
G4KDNode_Baseoperator= (const G4KDNode_Base &right)
 

Detailed Description

Definition at line 64 of file G4KDNode.hh.

Constructor & Destructor Documentation

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.

G4KDNode_Base::~G4KDNode_Base ( )
virtual

Definition at line 103 of file G4KDNode.cc.

G4KDNode_Base::G4KDNode_Base ( const G4KDNode_Base right)
private

Definition at line 82 of file G4KDNode.cc.

References fAxis, and fSide.

Member Function Documentation

template<typename Position >
G4KDNode_Base* G4KDNode_Base::FindParent ( const Position &  x0)

Referenced by Insert().

+ Here is the caller graph for this function:

int G4KDNode_Base::GetAxis ( ) const
inline

Definition at line 82 of file G4KDNode.hh.

References fAxis.

Referenced by G4KDMap::PopOutMiddle().

+ Here is the caller graph for this function:

int G4KDNode_Base::GetDim ( ) const

Definition at line 112 of file G4KDNode.cc.

References fTree, and G4KDTree::GetDim().

+ Here is the call graph for this function:

G4KDNode_Base* G4KDNode_Base::GetLeft ( )
inline

Definition at line 84 of file G4KDNode.hh.

References fLeft.

Referenced by G4KDTree::__Clear_Rec().

+ Here is the caller graph for this function:

G4KDNode_Base* G4KDNode_Base::GetParent ( )
inline

Definition at line 83 of file G4KDNode.hh.

References fParent.

G4KDNode_Base* G4KDNode_Base::GetRight ( )
inline

Definition at line 85 of file G4KDNode.hh.

References fRight.

Referenced by G4KDTree::__Clear_Rec().

+ Here is the caller graph for this function:

G4KDTree* G4KDNode_Base::GetTree ( ) const
inline

Definition at line 77 of file G4KDNode.hh.

References fTree.

void G4KDNode_Base::InactiveNode ( )
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<typename PointT >
G4KDNode_Base* G4KDNode_Base::Insert ( PointT *  point)

Referenced by G4KDTree::Build().

+ Here is the caller graph for this function:

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().

+ Here is the call graph for this function:

virtual bool G4KDNode_Base::IsValid ( void  ) const
inlinevirtual

Reimplemented in G4KDNode< PointT >.

Definition at line 74 of file G4KDNode.hh.

G4KDNode_Base & G4KDNode_Base::operator= ( const G4KDNode_Base right)
private

Definition at line 91 of file G4KDNode.cc.

References fAxis, fLeft, fParent, fRight, fSide, and fTree.

virtual double G4KDNode_Base::operator[] ( size_t  ) const
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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4KDNode_Base::PullSubTree ( )

Definition at line 147 of file G4KDNode.cc.

References fLeft, fParent, fRight, fSide, and fTree.

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().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void G4KDNode_Base::SetTree ( G4KDTree tree)
inline

Definition at line 78 of file G4KDNode.hh.

References fTree.

Member Data Documentation

size_t G4KDNode_Base::fAxis
protected

Definition at line 104 of file G4KDNode.hh.

Referenced by G4KDNode_Base(), GetAxis(), Insert(), and operator=().

G4KDNode_Base* G4KDNode_Base::fLeft
protected

Definition at line 112 of file G4KDNode.hh.

Referenced by GetLeft(), Insert(), operator=(), Print(), PullSubTree(), and RetrieveNodeList().

G4KDNode_Base * G4KDNode_Base::fParent
protected

Definition at line 112 of file G4KDNode.hh.

Referenced by G4KDNode_Base(), GetParent(), Insert(), operator=(), and PullSubTree().

G4KDNode_Base * G4KDNode_Base::fRight
protected

Definition at line 112 of file G4KDNode.hh.

Referenced by GetRight(), Insert(), operator=(), Print(), PullSubTree(), and RetrieveNodeList().

int G4KDNode_Base::fSide
protected

Definition at line 105 of file G4KDNode.hh.

Referenced by G4KDNode_Base(), Insert(), operator=(), and PullSubTree().

G4KDTree* G4KDNode_Base::fTree
protected

The documentation for this class was generated from the following files: