Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-18 09:16:19

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 geocel/BoundingBoxIO.json.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <nlohmann/json.hpp>
0010 
0011 #include "BoundingBox.hh"
0012 
0013 namespace celeritas
0014 {
0015 //---------------------------------------------------------------------------//
0016 // Read a bounding box from a JSON file
0017 template<class T>
0018 void from_json(nlohmann::json const& j, BoundingBox<T>& bbox);
0019 
0020 // Write a bounding box to a JSON file
0021 template<class T>
0022 void to_json(nlohmann::json& j, BoundingBox<T> const& bbox);
0023 
0024 //---------------------------------------------------------------------------//
0025 }  // namespace celeritas