45 main_middle = (
int) ceil(contSize/2.);
75 vector<_deq_iterator>& vit = fMap[pos];
77 size_t maxSize = fSortOut.size();
79 cout << maxSize << endl;
80 cout << fSortOut.capacity() << endl;
84 for (
size_t i = 0; i < fSortOut.size(); ++i)
86 vit[i]=fSortOut[i]->Insert(pos);
94 if(fIsSorted ==
false)
Sort();
95 G4KDNode* output_node = fSortOut[dimension]->PopOutMiddle();
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)
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
G4KDNode * PopOutMiddle()
std::deque< G4KDNode * > fContainer
__1DSortOut(int dimension)
void Erase(std::deque< G4KDNode * >::iterator &)
std::deque< G4KDNode * >::iterator _deq_iterator
std::deque< G4KDNode * >::iterator Insert(G4KDNode *)
void Insert(G4KDNode *pos)