Geant4 9.6.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
ResNode Struct Reference

Public Member Functions

 ResNode ()
 
 ResNode (double distsqr, G4KDNode *node)
 
 ResNode (const ResNode &right)
 
 ~ResNode ()
 
bool operator< (const ResNode &right) const
 
G4KDNodeGetNode ()
 
double GetDistanceSqr ()
 

Protected Attributes

G4KDNodefNode
 
double fDistanceSqr
 

Detailed Description

Definition at line 42 of file G4KDTreeResult.cc.

Constructor & Destructor Documentation

◆ ResNode() [1/3]

ResNode::ResNode ( )
inline

Definition at line 45 of file G4KDTreeResult.cc.

45:fNode(0),fDistanceSqr(0){;}
G4KDNode * fNode
double fDistanceSqr

◆ ResNode() [2/3]

ResNode::ResNode ( double  distsqr,
G4KDNode node 
)
inline

Definition at line 46 of file G4KDTreeResult.cc.

46:fNode(node),fDistanceSqr(distsqr){;}

◆ ResNode() [3/3]

ResNode::ResNode ( const ResNode right)
inline

Definition at line 47 of file G4KDTreeResult.cc.

48 {
49 fNode = right.fNode;
51 }

◆ ~ResNode()

ResNode::~ResNode ( )
inline

Definition at line 52 of file G4KDTreeResult.cc.

52{;}

Member Function Documentation

◆ GetDistanceSqr()

double ResNode::GetDistanceSqr ( )
inline

Definition at line 60 of file G4KDTreeResult.cc.

60{ return fDistanceSqr;}

◆ GetNode()

G4KDNode * ResNode::GetNode ( )
inline

Definition at line 59 of file G4KDTreeResult.cc.

59{ return fNode;}

◆ operator<()

bool ResNode::operator< ( const ResNode right) const
inline

Definition at line 54 of file G4KDTreeResult.cc.

55 {
56 return (fDistanceSqr < right.fDistanceSqr);
57 }

Member Data Documentation

◆ fDistanceSqr

double ResNode::fDistanceSqr
protected

Definition at line 64 of file G4KDTreeResult.cc.

Referenced by GetDistanceSqr(), operator<(), and ResNode().

◆ fNode

G4KDNode* ResNode::fNode
protected

Definition at line 63 of file G4KDTreeResult.cc.

Referenced by GetNode(), and ResNode().


The documentation for this struct was generated from the following file: