Geant4 11.1.1
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_Base *node)
 
 ResNode (const ResNode &right)
 
ResNodeoperator= (const ResNode &rhs)
 
 ~ResNode ()
 
G4bool operator< (const ResNode &right) const
 
G4KDNode_BaseGetNode ()
 
double GetDistanceSqr ()
 

Protected Attributes

G4KDNode_BasefNode
 
double fDistanceSqr
 

Detailed Description

Definition at line 45 of file G4KDTreeResult.cc.

Constructor & Destructor Documentation

◆ ResNode() [1/3]

ResNode::ResNode ( )
inline

Definition at line 48 of file G4KDTreeResult.cc.

48:fNode(0),fDistanceSqr(0){;}
G4KDNode_Base * fNode
double fDistanceSqr

◆ ResNode() [2/3]

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

Definition at line 49 of file G4KDTreeResult.cc.

49 :
50 fNode(node),fDistanceSqr(distsqr)
51 {;}

◆ ResNode() [3/3]

ResNode::ResNode ( const ResNode right)
inline

Definition at line 53 of file G4KDTreeResult.cc.

54 {
55 fNode = right.fNode;
57 }

◆ ~ResNode()

ResNode::~ResNode ( )
inline

Definition at line 65 of file G4KDTreeResult.cc.

65{;}

Member Function Documentation

◆ GetDistanceSqr()

double ResNode::GetDistanceSqr ( )
inline

Definition at line 73 of file G4KDTreeResult.cc.

73{ return fDistanceSqr;}

◆ GetNode()

G4KDNode_Base * ResNode::GetNode ( )
inline

Definition at line 72 of file G4KDTreeResult.cc.

72{ return fNode;}

◆ operator<()

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

Definition at line 67 of file G4KDTreeResult.cc.

68 {
69 return (fDistanceSqr < right.fDistanceSqr);
70 }

◆ operator=()

ResNode & ResNode::operator= ( const ResNode rhs)
inline

Definition at line 58 of file G4KDTreeResult.cc.

59 {
60 if(this == &rhs) return *this;
61 fNode = rhs.fNode;
63 return *this;
64 }

Member Data Documentation

◆ fDistanceSqr

double ResNode::fDistanceSqr
protected

Definition at line 77 of file G4KDTreeResult.cc.

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

◆ fNode

G4KDNode_Base* ResNode::fNode
protected

Definition at line 76 of file G4KDTreeResult.cc.

Referenced by GetNode(), operator=(), and ResNode().


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