Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::optical::test::GridAccessor Class Reference

Convenience class for accessing data built on the grid, and performing sanity checks on bounds. More...

#include <ValidationUtils.hh>

Inheritance diagram for celeritas::optical::test::GridAccessor:
Inheritance graph
[legend]

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.
 

Detailed Description

Convenience class for accessing data built on the grid, and performing sanity checks on bounds.

Member Function Documentation

◆ operator()()

auto celeritas::optical::test::GridAccessor::operator() ( ItemRange< Grid grid_ids) const

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.


The documentation for this class was generated from the following files: