Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-26 09:34: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 corecel/inp/DistributionsIO.json.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <nlohmann/json.hpp>
0010 
0011 #include "Distributions.hh"
0012 
0013 namespace celeritas
0014 {
0015 namespace inp
0016 {
0017 //---------------------------------------------------------------------------//
0018 
0019 template<class Distribution>
0020 void to_json(nlohmann::json& j, TruncatedDistribution<Distribution> const&);
0021 template<class Distribution>
0022 void from_json(nlohmann::json const& j, TruncatedDistribution<Distribution>&);
0023 
0024 template<class T>
0025 void to_json(nlohmann::json& j, DeltaDistribution<T> const&);
0026 template<class T>
0027 void from_json(nlohmann::json const& j, DeltaDistribution<T>&);
0028 
0029 void to_json(nlohmann::json& j, NormalDistribution const&);
0030 void from_json(nlohmann::json const& j, NormalDistribution&);
0031 
0032 void to_json(nlohmann::json& j, IsotropicDistribution const&);
0033 void from_json(nlohmann::json const& j, IsotropicDistribution&);
0034 
0035 void to_json(nlohmann::json& j, UniformBoxDistribution const&);
0036 void from_json(nlohmann::json const& j, UniformBoxDistribution&);
0037 
0038 //---------------------------------------------------------------------------//
0039 }  // namespace inp
0040 }  // namespace celeritas