Celeritas
0.5.0-86+4a8eea4
|
Convenience class for accessing data built on the grid, and performing sanity checks on bounds. More...
#include <ValidationUtils.hh>
Public Types | |
Type aliases | |
using | Grid = GenericGridRecord |
using | GridId = OpaqueId< Grid > |
using | ImportPhysicsTable = std::vector< ImportPhysicsVector > |
using | GridView = std::tuple< Span< real_type const >, Span< real_type const > > |
template<class T > | |
using | Items = Collection< T, Ownership::value, MemSpace::host > |
Public Member Functions | |
GridAccessor (Items< real_type > *reals, Items< Grid > *grids) | |
Construct validator for with the underlying storage. | |
std::vector< GridView > | operator() (ItemRange< Grid > grid_ids) const |
Retrieve a table of grid views built on the storage. More... | |
Span< real_type const > | operator() (ItemRange< real_type > const &real_ids) const |
Retrieve a span of reals built on the storage. | |
MfpBuilder | create_mfp_builder () |
Construct an MFP builder with the underlying collections. | |
Convenience class for accessing data built on the grid, and performing sanity checks on bounds.
Retrieve a table of grid views built on the storage.
Each grid view is a pair of spans representing the grid and value of a GenericGridRecord
.