Celeritas 0.7.0-dev.194+develop.0df4cab59
Loading...
Searching...
No Matches
Classes | Public Member Functions | List of all members
celeritas::ActionSequence Class Reference

Sequence of step actions to invoke as part of a single step. More...

#include <ActionSequence.hh>

Classes

struct  Options
 Construction/execution options. More...
 

Public Types

Type aliases
using ActionGroupsT = ActionGroups< CoreParams, CoreState >
 
using SPActionTimes = std::shared_ptr< ActionTimes >
 
using MapStrDbl = ActionTimes::MapStrDbl
 

Public Member Functions

 ActionSequence (ActionRegistry const &, Options options)
 Construct from an action registry and sequence options.
 
template<MemSpace M>
void begin_run (CoreParams const &params, CoreState< M > &state)
 Initialize actions and states.
 
template<MemSpace M>
void step (CoreParams const &, CoreState< M > &state)
 Call all explicit actions with host or device data.
 
MapStrDbl get_action_times (AuxStateVec const &) const
 Get the accumulated action times.
 
ActionGroupsT constactions () const
 Get the ordered vector of actions in the sequence.
 

Detailed Description

Sequence of step actions to invoke as part of a single step.

TODO accessors here are used by diagnostic output from celer-sim etc.; perhaps make this public or add a diagnostic output for it?

Note
This class must be constructed after all actions have been added to the action registry.

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