40 first = index = last = next = temp = (
G4Surface*)0;
52 if(number_of_elements)
93 for(
G4int a=0;a<number;a++)
110 number_of_elements--;
117 if(number_of_elements == 0)last = first;
126 if(srf == last) last = temp;
138 if(number_of_elements)
161 number_of_elements--;
173 number_of_elements--;
176 last = index = first;
195 if(number_of_elements == 1)
return;
204 if(number_of_elements > 1)
206 while(x < number_of_elements)
208 distances[x] = index;
221 first = distances[x];
225 while (x < number_of_elements)
242 register G4int i=left;
243 register G4int j=right;
250 while ( (Dist[i]->GetDistance() < elem2->
GetDistance()) && (i < right) )
void QuickG4Sort(G4Surface **, G4int, G4int)
void AddSurface(G4Surface *srf)
const G4Surface * GetLastSurface() const
void RemoveSurface(G4Surface *srf)
void SetNextNode(G4Surface *)
G4double GetDistance() const
G4Surface * GetNextNode()