Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4HadTmpUtil.hh File Reference
#include "globals.hh"
#include <vector>
#include <algorithm>
Include dependency graph for G4HadTmpUtil.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G4SortHelperPtr< A >
 
struct  G4Delete
 

Functions

G4String G4inttostring (int ai)
 
template<class A >
void G4PtrSort (std::vector< A * > *aList)
 

Function Documentation

G4String G4inttostring ( int  ai)

Definition at line 29 of file G4HadTmpUtil.cc.

30 {
31  std::ostringstream ost;
32  ost << ai;
33  G4String result = ost.str();
34  return result;
35 }
G4double G4ParticleHPJENDLHEData::G4double result
template<class A >
void G4PtrSort ( std::vector< A * > *  aList)

Definition at line 47 of file G4HadTmpUtil.hh.

48 {
49  std::vector<G4SortHelperPtr<A> > helper;
50  for(size_t i=0; i<aList->size(); i++) helper.push_back(aList->operator[](i));
51  std::sort(helper.begin(), helper.end());
52  for(size_t j=0; j<helper.size(); j++) aList->operator[](j)=&(*helper[j]);
53 }