File indexing completed on 2026-05-27 07:23:54
0001 def write_out_file_to_fp(code, output):
0002 output.write("""// This file is part of the ACTS project.
0003 //
0004 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0005 //
0006 // This Source Code Form is subject to the terms of the Mozilla Public
0007 // License, v. 2.0. If a copy of the MPL was not distributed with this
0008 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0009
0010 // Note: This file is generated by generate_sympy_cov.py
0011 // Do not modify it manually.
0012
0013 #pragma once
0014
0015 #include "detray/definitions/algebra.hpp"
0016 #include "detray/definitions/detail/qualifiers.hpp"
0017 #include "detray/algebra/type_traits.hpp"
0018
0019 namespace detray::detail {
0020 """)
0021 output.write(code)
0022 output.write("}")
0023
0024
0025 def write_out_file(code, file_name=None):
0026 if file_name is None:
0027 write_out_file_to_fp(code, sys.stdout)
0028 else:
0029 with open(file_name, "w") as f:
0030 write_out_file_to_fp(code, f)