9 std::vector<int> materialMap;
10 std::set<int> materials;
18 materialMap.push_back(passedMaterialId);
19 materials.insert(passedMaterialId);
23 if (index >= materialMap.size()) {
24 materialMap.resize(index + 1);
26 materialMap[index] = materialId;
27 materials.insert(materialId);
35 if (index >= materialMap.size())
37 return materialMap[index];
Definition lsMaterialMap.hpp:8
std::size_t getNumberOfMaterials() const
Definition lsMaterialMap.hpp:32
std::size_t getNumberOfLayers() const
Definition lsMaterialMap.hpp:30
int getMaterialId(const std::size_t index) const
Definition lsMaterialMap.hpp:34
void insertNextMaterial(const int passedMaterialId)
Definition lsMaterialMap.hpp:17
MaterialMap(MaterialMap &)=default
void setMaterialId(const std::size_t index, const int materialId)
Definition lsMaterialMap.hpp:22
MaterialMap(MaterialMap &&)=default
Definition lsAdvect.hpp:46