47 fNode(node),fDistanceSqr(distsqr)
57 if(
this == &rhs)
return *
this;
93 KDTR_parent::erase(begin(),end());
100 KDTR_parent::push_back(
ResNode(dis_sq,node));
107 KDTR_parent::erase(begin(),end());
120 return KDTR_parent::size();
125 return KDTR_parent::size();
146 return (*fIterator).GetDistanceSqr();
150 return (*fIterator).GetNode();
ResNode(const ResNode &right)
bool CompareResNode(const ResNode &left, const ResNode &right)
bool operator<(const ResNode &right) const
G4KDTree is used by the ITManager to locate the neareast neighbours.
virtual ~G4KDTreeResult()
G4KDTreeResult(G4KDTree *)
KDTR_parent::iterator fIterator
G4ThreadLocal G4Allocator< G4KDTreeResult > * aKDTreeAllocator
ResNode & operator=(const ResNode &rhs)
double GetDistanceSqr() const
G4KDNode_Base * GetNode()
#define KDTR_parent
G4KDTreeResult enables to go through the nearest entities found by G4KDTree.
G4KDNode_Base * GetNode() const
void Insert(double, G4KDNode_Base *)
ResNode(double distsqr, G4KDNode_Base *node)