File indexing completed on 2026-10-26 09:34:34
0001
0002
0003
0004
0005
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 }
0040 }