34G4MoleculeHandleManager::G4MoleculeHandleManager()
37G4bool G4MoleculeHandleManager::CompMoleculePointer::operator()(
const G4Molecule* mol1,
40 return (*mol1) < (*mol2);
45 if (!fMoleculeHandle.empty())
47 auto it = fMoleculeHandle.begin();
48 for (; it != fMoleculeHandle.end(); it++)
57 if (fInstance !=
nullptr)
66 if (fInstance ==
nullptr)
75 auto it = fMoleculeHandle.find(molecule);
78 if (it != fMoleculeHandle.end())
std::shared_ptr< const G4Molecule > G4MoleculeHandle
G4MoleculeHandle GetMoleculeHandle(const G4Molecule *)
static void DeleteInstance()
~G4MoleculeHandleManager()
static G4MoleculeHandleManager * Instance()