G4KDNode.cc File Reference

#include "globals.hh"
#include "G4KDNode.hh"
#include "G4KDTree.hh"

Go to the source code of this file.

Functions

void * GetData (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.

00064 {
00065     if(node)
00066     delete node ;
00067     node = 0;
00068 }

void* GetData ( G4KDNode node  ) 

Definition at line 45 of file G4KDNode.cc.

References G4KDNode::GetData().

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

00046 {
00047     return node->GetData() ;
00048 }

const double* GetNodePosition ( G4KDNode node  ) 

Definition at line 50 of file G4KDNode.cc.

References G4KDNode::GetPosition().

00051 {
00052     return node->GetPosition() ;
00053 }

void InactiveNode ( G4KDNode node  ) 

Definition at line 57 of file G4KDNode.cc.

References G4KDNode::InactiveNode().

Referenced by G4IT::TakeOutBox().

00058 {
00059     if(!node) return ;
00060     node->InactiveNode() ;
00061 }


Generated on Mon May 27 17:50:49 2013 for Geant4 by  doxygen 1.4.7