|
Celeritas 0.7+972e6cd
|
Manage state data for recording step times. More...
#include <StepTimes.hh>

Public Types | |
Type aliases | |
| using | SPAuxParamsRegistry = std::shared_ptr< AuxParamsRegistry > |
| using | VecDbl = std::vector< double > |
Public Types inherited from celeritas::AuxParamsInterface | |
| using | UPState = std::unique_ptr< AuxStateInterface > |
| Default destructor. | |
Public Member Functions | |
| StepTimes (AuxId, std::string label) | |
| Construct from ID and label. | |
| StepTimesState const & | state (AuxStateVec const &) const |
| Access the state. | |
| StepTimesState & | state (AuxStateVec &) const |
| Access the state (mutable). | |
Aux interface | |
| std::string_view | label () const final |
| Short name for the aux data. | |
| AuxId | aux_id () const final |
| Index of this class instance in its registry. | |
| UPState | create_state (MemSpace, StreamId, size_type) const final |
| Build core state data for a stream. | |
Public Member Functions inherited from celeritas::AuxParamsInterface | |
| virtual | ~AuxParamsInterface () |
| Default destructor. | |
Static Public Member Functions | |
| static std::shared_ptr< StepTimes > | make_and_insert (SPAuxParamsRegistry const &, std::string label) |
| Construct and add to the aux registry. | |
Additional Inherited Members | |
Protected Member Functions inherited from celeritas::AuxParamsInterface | |
| AuxParamsInterface ()=default | |
| AuxParamsInterface (AuxParamsInterface const &)=default | |
| Default destructor. | |
| AuxParamsInterface & | operator= (AuxParamsInterface const &)=default |
| Default destructor. | |
| AuxParamsInterface (AuxParamsInterface &&)=default | |
| Default destructor. | |
| AuxParamsInterface & | operator= (AuxParamsInterface &&)=default |
| Default destructor. | |
Manage state data for recording step times.
This class allocates thread-local state data that can be used to record the time of each step on each stream over the run. Because the class that invokes the sequence of steps should be shared across threads, the step times are stored as auxiliary data rather than locally in that class.
|
inlinefinalvirtual |
Index of this class instance in its registry.
Implements celeritas::AuxParamsInterface.
Build core state data for a stream.
Implements celeritas::AuxParamsInterface.
|
inlinefinalvirtual |
Short name for the aux data.
Implements celeritas::AuxParamsInterface.