45 main_middle = (int) ceil(contSize/2.);
75 vector<_deq_iterator>& vit =
fMap[
pos];
79 cout << maxSize << endl;
84 for (
size_t i = 0; i <
fSortOut.size(); ++i)
97 std::map<G4KDNode*, std::vector<_deq_iterator> >::iterator fMap_it
98 =
fMap.find(output_node);
100 std::vector<_deq_iterator>& vit = fMap_it->second;
102 for(
int i = 0 ; i < (int)
fSortOut.size() ; i++)
104 if(i != dimension)
fSortOut[i]->Erase(vit[i]);
114 for (
size_t i = 0; i <
fSortOut.size(); ++i)
G4KDNode * PopOutMiddle(int dimension)
G4KDNode * GetMidle(int &G4KDNode_deque)
G4KDNode * PopOutMiddle()
std::deque< G4KDNode * > fContainer
__1DSortOut(int dimension)
void Erase(std::deque< G4KDNode * >::iterator &)
G4KDNode stores one entity in G4KDTree This class is for internal use only.
std::deque< G4KDNode * >::iterator _deq_iterator
std::map< G4KDNode *, std::vector< std::deque< G4KDNode * >::iterator > > fMap
std::vector< __1DSortOut * > fSortOut
std::deque< G4KDNode * >::iterator Insert(G4KDNode *)
static const G4double pos
void Insert(G4KDNode *pos)