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
virtual ~G4KDTreeResult()
G4KDTreeResult(G4KDTree *)
KDTR_parent::iterator fIterator
ResNode & operator=(const ResNode &rhs)
double GetDistanceSqr() const
G4KDNode_Base * GetNode()
G4DLLIMPORT G4ThreadLocal G4Allocator< G4KDTreeResult > * aKDTreeAllocator
G4KDNode_Base * GetNode() const
void Insert(double, G4KDNode_Base *)
ResNode(double distsqr, G4KDNode_Base *node)