|
|
|||
File indexing completed on 2026-11-07 10:11:40
0001 //------------------------------- -*- C++ -*- -------------------------------// 0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details 0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT) 0004 //---------------------------------------------------------------------------// 0005 //! \file celeritas/optical/OpticalSizesIO.json.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <nlohmann/json.hpp> 0010 0011 #include "corecel/io/JsonUtils.json.hh" 0012 0013 #include "OpticalSizes.hh" 0014 0015 namespace celeritas 0016 { 0017 //---------------------------------------------------------------------------// 0018 void to_json(nlohmann::json& j, OpticalSizes const& v) 0019 { 0020 j = { 0021 CELER_JSON_PAIR(v, primaries), 0022 CELER_JSON_PAIR(v, tracks), 0023 CELER_JSON_PAIR(v, generators), 0024 CELER_JSON_PAIR(v, streams), 0025 }; 0026 } 0027 0028 //---------------------------------------------------------------------------// 0029 } // 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 |
|