Import Geant4 3.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:55:53 +02:00
parent e7d7193284
commit cfcb558cfe
3050 changed files with 91703 additions and 48310 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4NavigationLevelRep.icc,v 1.2 1999/12/15 14:50:22 gunter Exp $
// GEANT4 tag $Name: geant4-02-00 $
// $Id: G4NavigationLevelRep.icc,v 1.4 2000/11/20 18:59:39 gcosmo Exp $
// GEANT4 tag $Name: geant4-03-00 $
//
// 1 October 1997 J.Apostolakis Initial version.
//
@@ -14,29 +14,31 @@
// Constructors
//--------------
inline G4NavigationLevelRep::G4NavigationLevelRep(G4VPhysicalVolume* pPhysVol,
inline
G4NavigationLevelRep::G4NavigationLevelRep(G4VPhysicalVolume* pPhysVol,
const G4AffineTransform& afTransform,
EVolume volTp,
G4int repNo)
: sPhysicalVolumePtr(pPhysVol),
sTransform(afTransform),
sVolumeType(volTp),
: sTransform(afTransform),
sPhysicalVolumePtr(pPhysVol),
sReplicaNo(repNo),
sVolumeType(volTp),
fCountRef(1)
{
}
inline G4NavigationLevelRep::G4NavigationLevelRep()
: sPhysicalVolumePtr(0),
sTransform(),
sVolumeType(kReplica),
inline
G4NavigationLevelRep::G4NavigationLevelRep()
: sTransform(),
sPhysicalVolumePtr(0),
sReplicaNo(-1),
sVolumeType(kReplica),
fCountRef(1)
{
}
inline G4NavigationLevelRep::
G4NavigationLevelRep( G4VPhysicalVolume* pPhysVol,
inline
G4NavigationLevelRep::G4NavigationLevelRep(G4VPhysicalVolume* pPhysVol,
const G4AffineTransform& levelAbove,
const G4AffineTransform& relativeCurrent,
EVolume volTp,
@@ -49,7 +51,8 @@ inline G4NavigationLevelRep::
sTransform.InverseProduct( levelAbove, relativeCurrent );
}
inline G4NavigationLevelRep::G4NavigationLevelRep(G4NavigationLevelRep& right)
inline
G4NavigationLevelRep::G4NavigationLevelRep(G4NavigationLevelRep& right)
: sTransform(right.sTransform),
sPhysicalVolumePtr(right.sPhysicalVolumePtr),
sReplicaNo(right.sReplicaNo),
@@ -61,7 +64,8 @@ inline G4NavigationLevelRep::G4NavigationLevelRep(G4NavigationLevelRep& right)
// Destructor
//--------------
inline G4NavigationLevelRep::~G4NavigationLevelRep()
inline
G4NavigationLevelRep::~G4NavigationLevelRep()
{
#ifdef DEBUG_NAVIG_LEVEL
if(fCountRef>0){
@@ -73,52 +77,73 @@ inline G4NavigationLevelRep::~G4NavigationLevelRep()
// Operators
// --------------
inline G4NavigationLevelRep&
inline
G4NavigationLevelRep&
G4NavigationLevelRep::operator=(const G4NavigationLevelRep &right)
{
sTransform= right.sTransform;
sPhysicalVolumePtr=right.sPhysicalVolumePtr;
sVolumeType= right.sVolumeType;
sReplicaNo= right.sReplicaNo;
if (&right == this) return *this;
if (&right)
{
sTransform = right.sTransform;
sPhysicalVolumePtr = right.sPhysicalVolumePtr;
sVolumeType = right.sVolumeType;
sReplicaNo = right.sReplicaNo;
fCountRef = right.fCountRef;
}
return *this;
}
inline G4VPhysicalVolume* G4NavigationLevelRep::GetPhysicalVolume() const
inline
G4VPhysicalVolume*
G4NavigationLevelRep::GetPhysicalVolume()
{
return sPhysicalVolumePtr;
return sPhysicalVolumePtr;
}
inline const G4AffineTransform& G4NavigationLevelRep::GetTransform() const
inline
const G4AffineTransform&
G4NavigationLevelRep::GetTransform() const
{
return sTransform;
}
#if 0
inline G4AffineTransform& G4NavigationLevelRep::GetTransform()
inline
G4AffineTransform& G4NavigationLevelRep::GetTransform()
{
return sTransform;
}
#endif
inline const G4AffineTransform* G4NavigationLevelRep::GetTransformPtr() const
inline
const G4AffineTransform*
G4NavigationLevelRep::GetTransformPtr() const
{
return &sTransform;
}
inline EVolume G4NavigationLevelRep::GetVolumeType() const
inline
EVolume G4NavigationLevelRep::GetVolumeType() const
{
return sVolumeType;
}
inline G4int G4NavigationLevelRep::GetReplicaNo() const
inline
G4int G4NavigationLevelRep::GetReplicaNo() const
{
return sReplicaNo;
}
inline void G4NavigationLevelRep::AddAReference()
inline
void G4NavigationLevelRep::AddAReference()
{
fCountRef++;
}
inline G4bool G4NavigationLevelRep::RemoveAReference()
inline
G4bool G4NavigationLevelRep::RemoveAReference()
{
return( --fCountRef <= 0);
}
@@ -129,12 +154,14 @@ extern G4Allocator<G4NavigationLevelRep> aNavigLevelRepAllocator;
// If it is subclassed & new data members are added then the
// following "new" & "delete" will fail and give errors.
//
inline void* G4NavigationLevelRep::operator new(size_t)
inline
void* G4NavigationLevelRep::operator new(size_t)
{
return (void *) aNavigLevelRepAllocator.MallocSingle();
}
inline void G4NavigationLevelRep::operator delete(void *aLevelRep)
inline
void G4NavigationLevelRep::operator delete(void *aLevelRep)
{
aNavigLevelRepAllocator.FreeSingle((G4NavigationLevelRep *) aLevelRep);
}