Celeritas  0.5.0-56+6b053cd
Classes | Functions
AuxStateData.hh File Reference
#include <memory>
#include "corecel/Types.hh"
#include "AuxInterface.hh"
#include "CollectionStateStore.hh"
#include "ParamsDataInterface.hh"
This graph shows which files directly or indirectly include this file:

Classes

class  celeritas::AuxStateData< S, M >
 Helper class for retrieving templated state data on a single stream. More...
 

Functions

template<template< Ownership, MemSpace > class S, template< Ownership, MemSpace > class P>
std::unique_ptr< AuxStateInterface > celeritas::make_aux_state (ParamsDataInterface< P > const &params, MemSpace m, StreamId stream_id, size_type size)
 Create a auxiliary state given a runtime memory space. More...
 

Function Documentation

◆ make_aux_state()

template<template< Ownership, MemSpace > class S, template< Ownership, MemSpace > class P>
std::unique_ptr<AuxStateInterface> celeritas::make_aux_state ( ParamsDataInterface< P > const &  params,
MemSpace  m,
StreamId  stream_id,
size_type  size 
)

Create a auxiliary state given a runtime memory space.

Example:

return make_aux_state<ParticleTallyStateData>(
*this, memspace, stream, size);