Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
G4KDNode.cc File Reference
#include "globals.hh"
#include "G4KDNode.hh"
#include "G4KDTree.hh"

Go to the source code of this file.

Functions

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

Function Documentation

void Free ( G4KDNode *&  node)

Definition at line 63 of file G4KDNode.cc.

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

Definition at line 45 of file G4KDNode.cc.

References G4KDNode::GetData().

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

46 {
47  return node->GetData() ;
48 }
void * GetData()
Definition: G4KDNode.hh:117
const double* GetNodePosition ( G4KDNode node)

Definition at line 50 of file G4KDNode.cc.

References G4KDNode::GetPosition().

51 {
52  return node->GetPosition() ;
53 }
const double * GetPosition()
Definition: G4KDNode.hh:127
void InactiveNode ( G4KDNode node)

Definition at line 57 of file G4KDNode.cc.

References G4KDNode::InactiveNode().

Referenced by G4IT::TakeOutBox().

58 {
59  if(!node) return ;
60  node->InactiveNode() ;
61 }
void InactiveNode()
Definition: G4KDNode.cc:120