Celeritas 0.7.0-3+develop.835656ac1
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
celeritas::MaterialParamsData< W, M > Struct Template Reference

Access material properties on the device. More...

#include <MaterialData.hh>

Public Types

template<class T >
using Items = Collection< T, W, M >
 
template<class T >
using MaterialItems = Collection< T, W, M, PhysMatId >
 

Public Member Functions

 operator bool () const
 Whether the data is assigned.
 
template<Ownership W2, MemSpace M2>
MaterialParamsData & operator= (MaterialParamsData< W2, M2 > const &other)
 Assign from another set of data.
 

Public Attributes

Items< IsotopeRecord > isotopes
 
Items< ElementRecord > elements
 
Items< ElIsotopeComponent > isocomponents
 
Items< MatElementComponent > elcomponents
 
Collection< MaterialRecord, W, M, PhysMatId > materials
 
IsotopeComponentId::size_type max_isotope_components {}
 
ElementComponentId::size_type max_element_components {}
 
MaterialItems< OptMatId > optical_id
 

Detailed Description

template<Ownership W, MemSpace M>
struct celeritas::MaterialParamsData< W, M >

Access material properties on the device.

This view is created from MaterialParams.

If a material has optical properties defined, optical_id will give the index into the optical properties data. Otherwise, it will be a null ID, or empty if no optical properties are present for any material.

See also
MaterialParams (owns the pointed-to data)
ElementView (uses the pointed-to element data in a kernel)
IsotopeView (uses the pointed-to isotope data in a kernel)
MaterialView (uses the pointed-to material data in a kernel)

The documentation for this struct was generated from the following file: