51 fNode(node),fDistanceSqr(distsqr)
61 if(
this == &rhs)
return *
this;
97 KDTR_parent::erase(begin(),end());
104 KDTR_parent::push_back(
ResNode(dis_sq,node));
111 KDTR_parent::erase(begin(),end());
124 return KDTR_parent::size();
129 return KDTR_parent::size();
150 return (*fIterator).GetDistanceSqr();
154 return (*fIterator).GetNode();
double GetDistanceSqr() const
void Insert(double, G4KDNode_Base *)
bool CompareResNode(const ResNode &left, const ResNode &right)
#define G4ThreadLocalStatic
ResNode(double distsqr, G4KDNode_Base *node)
G4DLLIMPORT G4Allocator< G4KDTreeResult > *& aKDTreeAllocator()
virtual ~G4KDTreeResult()
G4KDNode_Base * GetNode()
bool operator<(const ResNode &right) const
KDTR_parent::iterator fIterator
ResNode & operator=(const ResNode &rhs)
ResNode(const ResNode &right)
G4KDTreeResult(G4KDTree *)
G4KDNode_Base * GetNode() const