G4OCCT 0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTMaterialMap.hh
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later
2// Copyright (C) 2026 G4OCCT Contributors
3
6
7#ifndef G4OCCT_G4OCCTMaterialMap_hh
8#define G4OCCT_G4OCCTMaterialMap_hh
9
10#include <G4String.hh>
11
12#include <cstddef>
13#include <map>
14
15class G4Material;
16
38public:
39 G4OCCTMaterialMap() = default;
40
50 void Add(const G4String& stepName, G4Material* material);
51
60 G4Material* Resolve(const G4String& stepName) const;
61
65 bool Contains(const G4String& stepName) const;
66
70 std::size_t Size() const { return fMap.size(); }
71
80 void Merge(const G4OCCTMaterialMap& other);
81
82private:
83 std::map<G4String, G4Material*> fMap;
84};
85
86#endif // G4OCCT_G4OCCTMaterialMap_hh
Maps STEP material names to Geant4 G4Material objects.
std::size_t Size() const
void Add(const G4String &stepName, G4Material *material)
G4OCCTMaterialMap()=default
bool Contains(const G4String &stepName) const
void Merge(const G4OCCTMaterialMap &other)
G4Material * Resolve(const G4String &stepName) const