Celeritas  0.5.0-56+6b053cd
Public Member Functions | List of all members
celeritas::test::MockInteractAction Class Referencefinal

Change the track state and allocate secondaries. More...

#include <MockInteractAction.hh>

Inheritance diagram for celeritas::test::MockInteractAction:
Inheritance graph
[legend]

Public Member Functions

 MockInteractAction (ActionId id, std::vector< size_type > const &num_secondaries, std::vector< bool > const &alive)
 Construct with number of secondaries and post-interact state.
 
void step (CoreParams const &, CoreStateHost &) const final
 
void step (CoreParams const &, CoreStateDevice &) const final
 
ActionId action_id () const final
 ID of this action for verification and ordering.
 
std::string_view label () const final
 Short unique label of the action.
 
std::string_view description () const final
 Description of the action.
 
StepActionOrder order () const final
 Dependency ordering of the action inside the step.
 
Span< size_type const > num_secondaries () const
 Get the number of secondaries.
 
Span< char const > alive () const
 Get true/false values for the pending track states.
 
- Public Member Functions inherited from celeritas::StepActionInterface< P, S >
virtual void step (P const &, S< MemSpace::host > &) const =0
 Execute the action with host data.
 
virtual void step (P const &, S< MemSpace::device > &) const =0
 Execute the action with device data.
 
- Public Member Functions inherited from celeritas::ActionInterface
virtual ~ActionInterface () noexcept=0
 Default destructor.
 

Additional Inherited Members

- Public Types inherited from celeritas::ActionTypeTraits< P, S >
using CoreParams = P
 
using CoreStateHost = S< MemSpace::host >
 
using CoreStateDevice = S< MemSpace::device >
 
using SpanCoreStateHost = Span< S< MemSpace::host > *const >
 
using SpanCoreStateDevice = Span< S< MemSpace::device > *const >
 
- Protected Member Functions inherited from celeritas::ActionInterface
 ActionInterface ()=default
 
 CELER_DEFAULT_COPY_MOVE (ActionInterface)
 

Detailed Description

Change the track state and allocate secondaries.


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