Import Geant4 11.0.0 source tree

This commit is contained in:
Gabriele Cosmo
2021-12-10 16:15:15 +00:00
committed by Ben Morgan
parent 6399a014b6
commit 80e2389dd8
3932 changed files with 202519 additions and 246221 deletions
@@ -37,18 +37,21 @@
// 12.07.95, P.Kent - Initial version
// --------------------------------------------------------------------
#ifndef G4SMARTVOXELPROXY_HH
#define G4SMARTVOXELPROXY_HH
#define G4SMARTVOXELPROXY_HH 1
#include "G4Types.hh"
#include <assert.h>
#include "geomwdefs.hh"
#include "G4Types.hh"
#include "G4Allocator.hh"
class G4SmartVoxelNode;
class G4SmartVoxelHeader;
class G4SmartVoxelProxy
{
public: // with description
public:
G4SmartVoxelProxy(G4SmartVoxelHeader *pHeader)
: fHeader(pHeader) {}
@@ -58,7 +61,7 @@ class G4SmartVoxelProxy
: fNode(pNode) {}
// Proxy for the specified node.
~G4SmartVoxelProxy();
~G4SmartVoxelProxy() = default;
// Destructor - do nothing. Not responsible for proxied objects.
G4bool IsHeader() const;
@@ -77,6 +80,11 @@ class G4SmartVoxelProxy
// Equality operator.
// True when objects share same address.
inline void* operator new(std::size_t);
// Override "new" for "G4Allocator".
inline void operator delete(void* aProxy);
// Override "delete" for "G4Allocator".
private:
G4SmartVoxelHeader* fHeader = nullptr;