Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes
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::ResNode ( )
inline

Definition at line 45 of file G4KDTreeResult.cc.

45 :fNode(0),fDistanceSqr(0){;}
double fDistanceSqr
G4KDNode * fNode
ResNode::ResNode ( double  distsqr,
G4KDNode node 
)
inline

Definition at line 46 of file G4KDTreeResult.cc.

46 :fNode(node),fDistanceSqr(distsqr){;}
double fDistanceSqr
G4KDNode * fNode
ResNode::ResNode ( const ResNode right)
inline

Definition at line 47 of file G4KDTreeResult.cc.

References fDistanceSqr, and fNode.

48  {
49  fNode = right.fNode;
51  }
double fDistanceSqr
G4KDNode * fNode
ResNode::~ResNode ( )
inline

Definition at line 52 of file G4KDTreeResult.cc.

52 {;}

Member Function Documentation

double ResNode::GetDistanceSqr ( )
inline

Definition at line 60 of file G4KDTreeResult.cc.

60 { return fDistanceSqr;}
double fDistanceSqr
G4KDNode* ResNode::GetNode ( )
inline

Definition at line 59 of file G4KDTreeResult.cc.

59 { return fNode;}
G4KDNode * fNode
bool ResNode::operator< ( const ResNode right) const
inline

Definition at line 54 of file G4KDTreeResult.cc.

References fDistanceSqr.

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

Field Documentation

double ResNode::fDistanceSqr
protected

Definition at line 64 of file G4KDTreeResult.cc.

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

G4KDNode* ResNode::fNode
protected

Definition at line 63 of file G4KDTreeResult.cc.

Referenced by ResNode().


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