DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Public Attributes | List of all members
dd4hep::sim::KernelHandle Class Reference

Handle to Geant4 actions with built-in creation mechanism. More...

#include <Geant4Handle.h>

Public Member Functions

 KernelHandle ()
 Default constructor. More...
 
 KernelHandle (Geant4Kernel *k)
 Construction initialized with object pointer. More...
 
 KernelHandle (const KernelHandle &k)
 Copy constructor. More...
 
 ~KernelHandle ()
 Default destructor. More...
 
 operator Geant4Kernel * () const
 Conversion operator. More...
 
Geant4Kernelget () const
 Access to the underlying object. More...
 
Geant4Kerneloperator-> () const
 Access to the underlying object. More...
 
KernelHandle worker ()
 Access to worker thread. More...
 
void destroy ()
 Destroy referenced object (program termination) More...
 

Public Attributes

Geant4Kernelvalue {nullptr}
 Pointer to referenced object. More...
 

Detailed Description

Handle to Geant4 actions with built-in creation mechanism.

Author
M.Frank
Version
1.0

Definition at line 96 of file Geant4Handle.h.

Constructor & Destructor Documentation

◆ KernelHandle() [1/3]

dd4hep::sim::KernelHandle::KernelHandle ( )
explicit

Default constructor.

Definition at line 219 of file Geant4Handle.cpp.

◆ KernelHandle() [2/3]

dd4hep::sim::KernelHandle::KernelHandle ( Geant4Kernel k)
explicit

Construction initialized with object pointer.

Definition at line 222 of file Geant4Handle.cpp.

◆ KernelHandle() [3/3]

dd4hep::sim::KernelHandle::KernelHandle ( const KernelHandle k)
inline

Copy constructor.

Definition at line 105 of file Geant4Handle.h.

◆ ~KernelHandle()

dd4hep::sim::KernelHandle::~KernelHandle ( )
inline

Default destructor.

Definition at line 107 of file Geant4Handle.h.

Member Function Documentation

◆ destroy()

void dd4hep::sim::KernelHandle::destroy ( )

Destroy referenced object (program termination)

Definition at line 230 of file Geant4Handle.cpp.

◆ get()

Geant4Kernel* dd4hep::sim::KernelHandle::get ( ) const
inline

Access to the underlying object.

Definition at line 111 of file Geant4Handle.h.

◆ operator Geant4Kernel *()

dd4hep::sim::KernelHandle::operator Geant4Kernel * ( ) const
inline

Conversion operator.

Definition at line 109 of file Geant4Handle.h.

◆ operator->()

Geant4Kernel* dd4hep::sim::KernelHandle::operator-> ( ) const
inline

Access to the underlying object.

Definition at line 113 of file Geant4Handle.h.

◆ worker()

KernelHandle dd4hep::sim::KernelHandle::worker ( )

Access to worker thread.

Definition at line 224 of file Geant4Handle.cpp.

Member Data Documentation

◆ value

Geant4Kernel* dd4hep::sim::KernelHandle::value {nullptr}
mutable

Pointer to referenced object.

Definition at line 99 of file Geant4Handle.h.


The documentation for this class was generated from the following files: