Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:35

0001 //----------------------------------*-C++-*----------------------------------//
0002 // Copyright 2023-2024 UT-Battelle, LLC, and other Celeritas developers.
0003 // See the top-level COPYRIGHT file for details.
0004 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0005 //---------------------------------------------------------------------------//
0006 //! \file geocel/BoundingBoxIO.json.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <nlohmann/json.hpp>
0011 
0012 #include "BoundingBox.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 // Read a bounding box from a JSON file
0018 template<class T>
0019 void from_json(nlohmann::json const& j, BoundingBox<T>& bbox);
0020 
0021 // Write a bounding box to a JSON file
0022 template<class T>
0023 void to_json(nlohmann::json& j, BoundingBox<T> const& bbox);
0024 
0025 //---------------------------------------------------------------------------//
0026 }  // namespace celeritas