Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ResNode Struct Reference
Collaboration diagram for ResNode:

Public Member Functions

 ResNode ()
 
 ResNode (double distsqr, G4KDNode_Base *node)
 
 ResNode (const ResNode &right)
 
ResNodeoperator= (const ResNode &rhs)
 
 ~ResNode ()
 
bool operator< (const ResNode &right) const
 
G4KDNode_BaseGetNode ()
 
double GetDistanceSqr ()
 

Protected Attributes

G4KDNode_BasefNode
 
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){;}
G4KDNode_Base * fNode
double fDistanceSqr
ResNode::ResNode ( double  distsqr,
G4KDNode_Base node 
)
inline

Definition at line 46 of file G4KDTreeResult.cc.

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

Definition at line 50 of file G4KDTreeResult.cc.

51  {
52  fNode = right.fNode;
54  }
G4KDNode_Base * fNode
double fDistanceSqr
ResNode::~ResNode ( )
inline

Definition at line 62 of file G4KDTreeResult.cc.

62 {;}

Member Function Documentation

double ResNode::GetDistanceSqr ( )
inline

Definition at line 70 of file G4KDTreeResult.cc.

70 { return fDistanceSqr;}
double fDistanceSqr
G4KDNode_Base* ResNode::GetNode ( )
inline

Definition at line 69 of file G4KDTreeResult.cc.

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

Definition at line 64 of file G4KDTreeResult.cc.

65  {
66  return (fDistanceSqr < right.fDistanceSqr);
67  }
double fDistanceSqr
ResNode& ResNode::operator= ( const ResNode rhs)
inline

Definition at line 55 of file G4KDTreeResult.cc.

56  {
57  if(this == &rhs) return *this;
58  fNode = rhs.fNode;
60  return *this;
61  }
G4KDNode_Base * fNode
double fDistanceSqr

Member Data Documentation

double ResNode::fDistanceSqr
protected

Definition at line 74 of file G4KDTreeResult.cc.

G4KDNode_Base* ResNode::fNode
protected

Definition at line 73 of file G4KDTreeResult.cc.


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