![]() |
|
|||
File indexing completed on 2025-02-22 10:31:28
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2024 UT-Battelle, LLC, and other Celeritas developers. 0003 // See the top-level COPYRIGHT file for details. 0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0005 //---------------------------------------------------------------------------// 0006 //! \file celeritas/optical/TrackInitParams.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "corecel/Types.hh" 0011 #include "corecel/data/CollectionMirror.hh" 0012 #include "corecel/data/ParamsDataInterface.hh" 0013 0014 #include "TrackInitData.hh" 0015 0016 namespace celeritas 0017 { 0018 namespace optical 0019 { 0020 //---------------------------------------------------------------------------// 0021 /*! 0022 * Manage persistent track initializer data. 0023 */ 0024 class TrackInitParams final : public ParamsDataInterface<TrackInitParamsData> 0025 { 0026 public: 0027 // Construct with capacity 0028 explicit TrackInitParams(size_type capacity); 0029 0030 //! Access data on host 0031 HostRef const& host_ref() const final { return data_.host_ref(); } 0032 0033 //! Access data on device 0034 DeviceRef const& device_ref() const final { return data_.device_ref(); } 0035 0036 private: 0037 // Host/device storage and reference 0038 CollectionMirror<TrackInitParamsData> data_; 0039 }; 0040 0041 //---------------------------------------------------------------------------// 0042 } // namespace optical 0043 } // namespace celeritas
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
![]() ![]() |