Celeritas 0.7-develop+980877a
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
celeritas::optical::GeneratorState< M > Struct Template Reference

Store optical generation states in aux data. More...

#include <GeneratorData.hh>

Inheritance diagram for celeritas::optical::GeneratorState< M >:
Inheritance graph
[legend]

Public Member Functions

 GeneratorState (StreamId stream, size_type capacity)
 Construct with stream and buffer capacity.
 
auto distributions ()
 Access the distributions counted by the host copy of the counters.
 
 operator bool () const
 True if states have been allocated.
 
- Public Member Functions inherited from celeritas::optical::GeneratorCounterState< M >
 GeneratorCounterState (StreamId stream)
 Construct with the stream used to update the counters.
 
StreamId stream_id () const
 Stream used to update the counters.
 
DevicePtr device_counters ()
 Counters in the state's memory space.
 
void assign (CountersT const &value)
 Set the current counters.
 
size_type buffer_bound ()
 Get a conservative upper bound on the current buffer size.
 
void grow_bound (size_type count)
 Increase the buffer bound by the maximum number of items added.
 
void copy_async ()
 Enqueue a copy of the counters used to tighten the buffer bound.
 
void sync_counters () override
 Synchronize and update the host counters and statistics.
 
void clear_generated () override
 Clear the generated count at the start of a transport loop.
 
void reset_counters () override
 Discard the current counters after the loop aborted early.
 
- Public Member Functions inherited from celeritas::AuxStateInterface
virtual ~AuxStateInterface ()
 Default destructor.
 

Public Attributes

StateDataStore< GeneratorStateData, M > store
 
bool needs_scan {false}
 Whether distributions were added since the photon counts were summed.
 
- Public Attributes inherited from celeritas::GeneratorStateBase
GeneratorCounters< size_type > counters
 Counts since the start of the optical loop (host copy)
 
GeneratorCounters< std::size_t > accum
 Counts accumulated over the event for diagnostics.
 

Additional Inherited Members

- Public Types inherited from celeritas::optical::GeneratorCounterState< M >
using CountersT = GeneratorCounters< size_type >
 
using DevicePtr = ObserverPtr< GeneratorStateCounters, M >
 
- Public Types inherited from celeritas::AuxStateInterface
using SPState = std::shared_ptr< AuxStateInterface >
 Default destructor.
 
- Protected Member Functions inherited from celeritas::AuxStateInterface
 AuxStateInterface ()=default
 
 AuxStateInterface (AuxStateInterface const &)=default
 Default destructor.
 
AuxStateInterface & operator= (AuxStateInterface const &)=default
 Default destructor.
 
 AuxStateInterface (AuxStateInterface &&)=default
 Default destructor.
 
AuxStateInterface & operator= (AuxStateInterface &&)=default
 Default destructor.
 

Detailed Description

template<MemSpace M>
struct celeritas::optical::GeneratorState< M >

Store optical generation states in aux data.


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