Import Geant4 0.1.0 source tree
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NavigationLevel.icc,v 2.1 1998/07/12 02:58:16 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4NavigationLevel.icc,v 1.8 1999/05/17 13:51:51 fbehner Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
// 30.09.97 J.Apostolakis Initial version.
|
||||
//
|
||||
@@ -41,7 +41,7 @@ inline G4NavigationLevel::G4NavigationLevel()
|
||||
fLevelRep= new G4NavigationLevelRep();
|
||||
}
|
||||
|
||||
inline G4NavigationLevel::G4NavigationLevel(G4NavigationLevel& right)
|
||||
inline G4NavigationLevel::G4NavigationLevel(const G4NavigationLevel& right)
|
||||
: fLevelRep( right.fLevelRep )
|
||||
{
|
||||
fLevelRep->AddAReference();
|
||||
@@ -108,8 +108,30 @@ inline void* G4NavigationLevel::operator new(size_t)
|
||||
return (void *) aNavigationLevelAllocator.MallocSingle();
|
||||
}
|
||||
|
||||
// Added for use by STL. F.Behner (used for pre-allocation)
|
||||
//
|
||||
inline void* G4NavigationLevel::operator new(size_t,void *a)
|
||||
{
|
||||
return a;
|
||||
}
|
||||
|
||||
inline void G4NavigationLevel::operator delete(void *aLevel)
|
||||
{
|
||||
aNavigationLevelAllocator.FreeSingle((G4NavigationLevel *) aLevel);
|
||||
}
|
||||
|
||||
// Added for use by STL. J. Apostolakis (used for free-ing pre-allocated?)
|
||||
|
||||
#ifndef G4NOT_ISO_DELETES
|
||||
inline void G4NavigationLevel::operator delete(void *ptr, void *p)
|
||||
{
|
||||
;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user