Celeritas 0.7.0-dev.224+develop.84a24a8b
Loading...
Searching...
No Matches
Public Member Functions | List of all members
celeritas::test::AuxMockParams Class Reference

Mock class for shared host data that has associated thread-local data. More...

#include <AuxMockParams.hh>

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

Public Types

Type aliases
using VecInt = std::vector< int >
 
- Public Types inherited from celeritas::AuxParams< AuxMockParamsData, AuxMockStateData >
using StateRefT = AuxMockStateData< Ownership::reference, M >
 
- Public Types inherited from celeritas::AuxParamsInterface
using UPState = std::unique_ptr< AuxStateInterface >
 Default destructor.
 
- Public Types inherited from celeritas::ParamsDataInterface< P >
using HostRef = HostCRef< P >
 
using DeviceRef = DeviceCRef< P >
 

Public Member Functions

 AuxMockParams (std::string &&label, AuxId auxid, int num_bins, VecInt const &integers)
 Construct with properties.
 
Aux interface
std::string_view label () const final
 Short name for the data.
 
AuxId aux_id () const final
 Index of this class instance in its registry.
 
Data interface
HostRef consthost_ref () const final
 Access data on host.
 
DeviceRef constdevice_ref () const final
 Access data on device.
 
- Public Member Functions inherited from celeritas::AuxParams< AuxMockParamsData, AuxMockStateData >
UPState create_state (MemSpace, StreamId, size_type size) const final
 Build a multithread state for a stream.
 
StateRefT< M > const & state_ref (AuxStateVec const &v) const
 
StateRefT< M > & state_ref (AuxStateVec &v) const
 
auto state_ref (AuxStateVec const &v) const -> StateRefT< M > const &
 Access the state ref (const).
 
auto state_ref (AuxStateVec &v) const -> StateRefT< M > &
 Access the state ref (mutable).
 
- Public Member Functions inherited from celeritas::AuxParamsInterface
virtual ~AuxParamsInterface ()
 Default destructor.
 
- Public Member Functions inherited from celeritas::ParamsDataInterface< P >
template<MemSpace M>
P< Ownership::const_reference, M > constref () const
 
template<MemSpace M>
P< Ownership::const_reference, M > constref () const
 Dispatch a "ref" call to host or device data.
 

Additional Inherited Members

- Protected Member Functions inherited from celeritas::AuxParamsInterface
 AuxParamsInterface ()=default
 
 CELER_DEFAULT_COPY_MOVE (AuxParamsInterface)
 Default destructor.
 
- Protected Member Functions inherited from celeritas::ParamsDataInterface< P >
 CELER_DEFAULT_COPY_MOVE (ParamsDataInterface)
 

Detailed Description

Mock class for shared host data that has associated thread-local data.

Member Function Documentation

◆ aux_id()

AuxId celeritas::test::AuxMockParams::aux_id ( ) const
inlinefinalvirtual

Index of this class instance in its registry.

Implements celeritas::AuxParamsInterface.

◆ device_ref()

DeviceRef const & celeritas::test::AuxMockParams::device_ref ( ) const
inlinefinalvirtual

Access data on device.

Implements celeritas::ParamsDataInterface< P >.

◆ host_ref()

HostRef const & celeritas::test::AuxMockParams::host_ref ( ) const
inlinefinalvirtual

Access data on host.

Implements celeritas::ParamsDataInterface< P >.

◆ label()

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

Short name for the data.

Implements celeritas::AuxParamsInterface.


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