Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-11-07 10:11:34

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/inp/FieldIO.json.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <nlohmann/json.hpp>
0010 
0011 #include "Field.hh"
0012 
0013 namespace celeritas
0014 {
0015 namespace inp
0016 {
0017 //---------------------------------------------------------------------------//
0018 
0019 void to_json(nlohmann::json& j, NoField const&);
0020 void from_json(nlohmann::json const& j, NoField&);
0021 
0022 void to_json(nlohmann::json& j, UniformField const&);
0023 void from_json(nlohmann::json const& j, UniformField&);
0024 
0025 void to_json(nlohmann::json& j, CylMapField const&);
0026 void from_json(nlohmann::json const& j, CylMapField&);
0027 
0028 template<class T>
0029 void to_json(nlohmann::json& j, AxisGrid<T> const&);
0030 template<class T>
0031 void from_json(nlohmann::json const& j, AxisGrid<T>&);
0032 
0033 void to_json(nlohmann::json& j, CartMapField const&);
0034 void from_json(nlohmann::json const& j, CartMapField&);
0035 
0036 void to_json(nlohmann::json& j, Field const&);
0037 void from_json(nlohmann::json const& j, Field&);
0038 
0039 //---------------------------------------------------------------------------//
0040 }  // namespace inp
0041 }  // namespace celeritas