|
Celeritas 0.7-develop+980877a
|
Store direct optical generation states in aux data. More...
#include <DirectGeneratorData.hh>

Public Member Functions | |
| DirectGeneratorState (StreamId stream, size_type capacity) | |
| Construct with stream and buffer capacity. | |
| auto | initializers () |
| Access the initializers 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< DirectGeneratorStateData, M > | store |
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. | |
Store direct optical generation states in aux data.