Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-10-27 09:40:39

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 orange/detail/LogicIO.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include <iosfwd>
0010 #include <string_view>
0011 #include <vector>
0012 
0013 #include "orange/OrangeTypes.hh"
0014 
0015 namespace celeritas
0016 {
0017 namespace detail
0018 {
0019 //---------------------------------------------------------------------------//
0020 // Stream a logic token
0021 void logic_to_stream(std::ostream& os, logic_int val);
0022 
0023 // Convert a logic vector to a string.
0024 std::string logic_to_string(std::vector<logic_int> const& logic);
0025 
0026 // Build a logic definition from a string
0027 std::vector<logic_int> string_to_logic(std::string_view s);
0028 
0029 // Get a vector of logic indicating "nowhere"
0030 std::vector<logic_int> make_nowhere_expr(LogicNotation notation);
0031 
0032 //---------------------------------------------------------------------------//
0033 }  // namespace detail
0034 }  // namespace celeritas