45 return fAllocatorList;
50 return fAllocatorList;
53 G4AllocatorList::G4AllocatorList()
64 fList.push_back(alloc);
69 std::vector<G4AllocatorBase*>::iterator itr=fList.begin();
72 for(; itr!=fList.end();++itr)
77 mem += (*itr)->GetAllocatedSize();
78 (*itr)->ResetStorage();
82 mem += (*itr)->GetAllocatedSize();
83 (*itr)->ResetStorage();
88 G4cout <<
"================== Deleting memory pools ==================="
90 G4cout <<
"Number of memory pools allocated: " <<
Size()
91 <<
"; of which, static: " << i <<
G4endl;
92 G4cout <<
"Dynamic pools deleted: " << j
93 <<
" / Total memory freed: " << std::setprecision(2)
94 << mem/1048576 << std::setprecision(6) <<
" Mb" <<
G4endl;
95 G4cout <<
"============================================================"
static G4AllocatorList * GetAllocatorListIfExist()
G4GLOB_DLL std::ostream G4cout
static G4AllocatorList * GetAllocatorList()
void Register(G4AllocatorBase *)
void Destroy(G4int nStat=0, G4int verboseLevel=0)