Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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 constnum_secondaries () const
 Get the number of secondaries.
 
Span< char constalive () 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
 CELER_DEFAULT_COPY_MOVE (ActionInterface)
 

Detailed Description

Change the track state and allocate secondaries.

Member Function Documentation

◆ action_id()

ActionId celeritas::test::MockInteractAction::action_id ( ) const
inlinefinalvirtual

ID of this action for verification and ordering.

Implements celeritas::ActionInterface.

◆ description()

std::string_view celeritas::test::MockInteractAction::description ( ) const
inlinefinalvirtual

Description of the action.

Implements celeritas::ActionInterface.

◆ label()

std::string_view celeritas::test::MockInteractAction::label ( ) const
inlinefinalvirtual

Short unique label of the action.

Implements celeritas::ActionInterface.

◆ order()

StepActionOrder celeritas::test::MockInteractAction::order ( ) const
inlinefinalvirtual

Dependency ordering of the action inside the step.

Implements celeritas::StepActionInterface< P, S >.


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