Celeritas  0.5.0-86+4a8eea4
List of all members
celeritas::AuxParamsInterface Class Referenceabstract

Base class for extensible shared data that has associated state. More...

#include <AuxInterface.hh>

Inheritance diagram for celeritas::AuxParamsInterface:
Inheritance graph
[legend]

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.
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ AuxParamsInterface()

celeritas::AuxParamsInterface::AuxParamsInterface ( )
protecteddefault

Allow construction and assignment only through daughter classes


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