Warning, file /include/celeritas/geo/GeoMaterialData.hh was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007 #pragma once
0008
0009 #include "corecel/data/Collection.hh"
0010 #include "geocel/Types.hh"
0011 #include "celeritas/Types.hh"
0012
0013 namespace celeritas
0014 {
0015
0016
0017
0018
0019 template<Ownership W, MemSpace M>
0020 struct GeoMaterialParamsData
0021 {
0022 template<class T>
0023 using VolumeItems = celeritas::Collection<T, W, M, VolumeId>;
0024
0025 VolumeItems<PhysMatId> materials;
0026
0027
0028 explicit CELER_FUNCTION operator bool() const
0029 {
0030 return !materials.empty();
0031 }
0032
0033
0034 template<Ownership W2, MemSpace M2>
0035 GeoMaterialParamsData& operator=(GeoMaterialParamsData<W2, M2> const& other)
0036 {
0037 CELER_EXPECT(other);
0038 materials = other.materials;
0039 return *this;
0040 }
0041 };
0042
0043
0044 }