Geant4  10.02
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)
 
template<typename PointT >
G4KDNode_BaseInsert (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
 
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 63 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 81 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 83 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 82 of file G4KDNode.hh.

References fParent.

G4KDNode_Base* G4KDNode_Base::GetRight ( )
inline

Definition at line 84 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 76 of file G4KDNode.hh.

References fTree.

void G4KDNode_Base::InactiveNode ( )
virtual

Reimplemented in G4KDNodeCopy< PointCopyT >, and G4KDNode< PointT >.

Definition at line 107 of file G4KDNode.cc.

References fTree, and G4KDTree::NoticeNodeDeactivation().

Referenced by InactiveNode(), G4KDNode< PointT >::InactiveNode(), and G4KDNodeCopy< PointCopyT >::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:

template<typename PointT >
G4KDNode_Base* G4KDNode_Base::Insert ( const 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().

+ Here is the call graph for this function:

virtual bool G4KDNode_Base::IsValid ( void  ) const
inlinevirtual

Reimplemented in G4KDNodeCopy< PointCopyT >, and G4KDNode< PointT >.

Definition at line 73 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
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 77 of file G4KDNode.hh.

References fTree.

Member Data Documentation

size_t G4KDNode_Base::fAxis
protected
G4KDNode_Base* G4KDNode_Base::fLeft
protected
G4KDNode_Base * G4KDNode_Base::fParent
protected
G4KDNode_Base * G4KDNode_Base::fRight
protected
int G4KDNode_Base::fSide
protected
G4KDTree* G4KDNode_Base::fTree
protected

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