![]() |
|
|||
File indexing completed on 2025-09-17 08:53:39
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/global/detail/CoreSizes.json.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <nlohmann/json.hpp> 0010 0011 #include "corecel/Types.hh" 0012 #include "corecel/io/JsonUtils.json.hh" 0013 0014 namespace celeritas 0015 { 0016 namespace detail 0017 { 0018 //---------------------------------------------------------------------------// 0019 /*! 0020 * Save state size/capacity counters. 0021 * 0022 * These should be *integrated* across streams, *per process*. 0023 */ 0024 struct CoreSizes 0025 { 0026 size_type initializers{}; 0027 size_type tracks{}; 0028 size_type secondaries{}; 0029 size_type events{}; 0030 0031 size_type streams{}; 0032 size_type processes{}; 0033 }; 0034 0035 //---------------------------------------------------------------------------// 0036 0037 void to_json(nlohmann::json& j, CoreSizes const& inp) 0038 { 0039 j = { 0040 CELER_JSON_PAIR(inp, initializers), 0041 CELER_JSON_PAIR(inp, tracks), 0042 CELER_JSON_PAIR(inp, secondaries), 0043 CELER_JSON_PAIR(inp, events), 0044 CELER_JSON_PAIR(inp, streams), 0045 CELER_JSON_PAIR(inp, processes), 0046 }; 0047 } 0048 0049 //---------------------------------------------------------------------------// 0050 } // namespace detail 0051 } // 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 |
![]() ![]() |