69 if(
this == &rhs)
return *
this;
87 std::list<ResNode>::erase(begin(),end());
92 std::list<ResNode>::push_back(
ResNode(pos,node));
97 std::list<ResNode>::erase(begin(),end());
108 return std::list<ResNode>::size();
113 return std::list<ResNode>::size();
134 memcpy(pos, (*fIterator).GetNode()->GetPosition(),
fTree->
GetDim() *
sizeof *pos);
135 return (*fIterator).GetNode()->GetData();
140 x = (*fIterator).GetNode()->GetPosition()[0];
141 y = (*fIterator).GetNode()->GetPosition()[1];
142 z = (*fIterator).GetNode()->GetPosition()[2];
144 return (*fIterator).GetNode()->GetData();
149 dist_sq = (*fIterator).GetDistanceSqr();
150 return (*fIterator).GetNode()->GetData();
155 dist_sq = (*fIterator).GetDistanceSqr();
161 return (*fIterator).GetNode()->GetData();
166 return (*fIterator).GetDistanceSqr();
bool CompareResNode(const ResNode &left, const ResNode &right)
G4KDTreeResult(G4KDTree *)
std::list< ResNode >::iterator fIterator
void Insert(double, G4KDNode *)
void * GetItem(double *&)
void * GetItemNDistanceSQ(double &)
virtual ~G4KDTreeResult()
bool operator<(const ResNode &right) const
ResNode(const ResNode &right)
ResNode(double distsqr, G4KDNode *node)