|
Celeritas 0.7.0-dev.161+develop.301cbc939
|
Base class for extensible shared data that has associated state. More...
#include <AuxInterface.hh>

Type aliases | |
| using | UPState = std::unique_ptr< AuxStateInterface > |
| Default destructor. | |
| virtual | ~AuxParamsInterface () |
| Default destructor. | |
| virtual AuxId | aux_id () const =0 |
| Index of this class instance in its registry. | |
| virtual std::string_view | label () const =0 |
| Label for the auxiliary data. | |
| virtual UPState | create_state (MemSpace, StreamId, size_type size) const =0 |
| Factory function for building multithread state for a stream. | |
| AuxParamsInterface ()=default | |
| CELER_DEFAULT_COPY_MOVE (AuxParamsInterface) | |
| Default destructor. | |
Base class for extensible shared data that has associated state.
Auxiliary data can be added to a AuxParamsInterface at runtime to be passed among multiple classes, and then dynamic_cast to the expected type. It needs to supply a factory function for creating the a state instance for multithreaded data on a particular stream and a given memory space. Classes can inherit both from AuxParamsInterface and other ActionInterface classes.
|
protecteddefault |
Allow construction and assignment only through daughter classes
Index of this class instance in its registry.
Implemented in celeritas::optical::GeneratorBase, celeritas::OffloadGatherAction, celeritas::ExtendFromPrimariesAction, celeritas::StatusChecker, celeritas::SlotDiagnostic, celeritas::test::DummyParams, and celeritas::test::AuxMockParams.
|
pure virtual |
Factory function for building multithread state for a stream.
Implemented in celeritas::ExtendFromPrimariesAction, celeritas::StatusChecker, celeritas::SlotDiagnostic, celeritas::test::DummyParams, celeritas::optical::GeneratorAction, celeritas::OffloadGatherAction, celeritas::optical::PrimaryGeneratorAction, and celeritas::test::AuxMockParams.
|
pure virtual |
Label for the auxiliary data.
Implemented in celeritas::optical::GeneratorBase, celeritas::OffloadGatherAction, celeritas::ExtendFromPrimariesAction, celeritas::StatusChecker, celeritas::SlotDiagnostic, celeritas::test::DummyParams, and celeritas::test::AuxMockParams.