Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Functions
G4KDTree.hh File Reference
#include <vector>
#include "G4KDTreeResult.hh"

Go to the source code of this file.

Data Structures

class  G4KDTree
 

Functions

void InactiveNode (G4KDNode *)
 
void Free (G4KDNode *&)
 
voidGetData (G4KDNode *)
 
const double * GetNodePosition (G4KDNode *)
 

Function Documentation

void Free ( G4KDNode *&  )

Definition at line 63 of file G4KDNode.cc.

64 {
65  if(node)
66  delete node ;
67  node = 0;
68 }
void* GetData ( G4KDNode )

Definition at line 45 of file G4KDNode.cc.

References G4KDNode::GetData().

Referenced by G4KDTree::__NearestInRange(), and G4NeutronHPData::MakePhysicsVector().

46 {
47  return node->GetData() ;
48 }
const double* GetNodePosition ( G4KDNode )

Definition at line 50 of file G4KDNode.cc.

References G4KDNode::GetPosition().

51 {
52  return node->GetPosition() ;
53 }
void InactiveNode ( G4KDNode )

Definition at line 57 of file G4KDNode.cc.

References G4KDNode::InactiveNode().

Referenced by G4IT::TakeOutBox().

58 {
59  if(!node) return ;
60  node->InactiveNode() ;
61 }