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

Construct a generic grid. More...

#include <GenericGridBuilder.hh>

Public Types

Type aliases
template<class T >
using Items = Collection< T, Ownership::value, MemSpace::host >
 
using Grid = GenericGridRecord
 
using SpanConstFlt = Span< float const >
 
using SpanConstDbl = Span< double const >
 

Public Member Functions

 GenericGridBuilder (Items< real_type > *reals)
 Construct with pointers to data that will be modified.
 
Grid operator() (SpanConstFlt grid, SpanConstFlt values)
 Add a grid of generic data with linear interpolation.
 
Grid operator() (SpanConstDbl grid, SpanConstDbl values)
 Add a grid of generic data with linear interpolation.
 
Grid operator() (ImportPhysicsVector const &)
 Add a grid from an imported physics vector.
 
template<class T >
auto insert_impl (Span< T const > grid, Span< T const > values) -> Grid
 Add a grid from container references.
 

Detailed Description

Construct a generic grid.

This uses a deduplicating inserter for real values to improve cacheing.


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