Import Geant4 10.5.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PrimaryVertex.hh 99159 2016-09-07 08:11:50Z gcosmo $
|
||||
// $Id: G4PrimaryVertex.hh 110257 2018-05-17 14:20:12Z gcosmo $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -102,20 +102,20 @@ class G4PrimaryVertex
|
||||
|
||||
};
|
||||
|
||||
extern G4PART_DLL G4ThreadLocal G4Allocator<G4PrimaryVertex> *aPrimaryVertexAllocator;
|
||||
extern G4PART_DLL G4Allocator<G4PrimaryVertex>*& aPrimaryVertexAllocator();
|
||||
|
||||
inline void * G4PrimaryVertex::operator new(size_t)
|
||||
{
|
||||
if (!aPrimaryVertexAllocator)
|
||||
if (!aPrimaryVertexAllocator())
|
||||
{
|
||||
aPrimaryVertexAllocator = new G4Allocator<G4PrimaryVertex>;
|
||||
aPrimaryVertexAllocator() = new G4Allocator<G4PrimaryVertex>;
|
||||
}
|
||||
return (void *) aPrimaryVertexAllocator->MallocSingle();
|
||||
return (void *) aPrimaryVertexAllocator()->MallocSingle();
|
||||
}
|
||||
|
||||
inline void G4PrimaryVertex::operator delete(void * aPrimaryVertex)
|
||||
{
|
||||
aPrimaryVertexAllocator->FreeSingle((G4PrimaryVertex *) aPrimaryVertex);
|
||||
aPrimaryVertexAllocator()->FreeSingle((G4PrimaryVertex *) aPrimaryVertex);
|
||||
}
|
||||
|
||||
inline G4ThreeVector G4PrimaryVertex::GetPosition() const
|
||||
|
||||
Reference in New Issue
Block a user