Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:57

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 orange/surf/VariantSurface.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include <variant>
0011 
0012 #include "corecel/cont/VariantUtils.hh"
0013 #include "orange/transform/VariantTransform.hh"
0014 
0015 #include "SurfaceTypeTraits.hh"
0016 
0017 #include "detail/AllSurfaces.hh"
0018 
0019 namespace celeritas
0020 {
0021 //---------------------------------------------------------------------------//
0022 //! std::variant class of all surfaces.
0023 using VariantSurface = EnumVariant<SurfaceType, SurfaceTypeTraits>;
0024 
0025 //---------------------------------------------------------------------------//
0026 // Apply a variant "daughter-to-parent" transform to a surface
0027 [[nodiscard]] VariantSurface apply_transform(VariantTransform const& transform,
0028                                              VariantSurface const& surface);
0029 
0030 //---------------------------------------------------------------------------//
0031 }  // namespace celeritas