|
|
|||
File indexing completed on 2025-12-15 10:22:46
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/surf/VariantSurface.hh 0006 //---------------------------------------------------------------------------// 0007 #pragma once 0008 0009 #include <variant> 0010 0011 #include "corecel/cont/VariantUtils.hh" 0012 #include "orange/transform/VariantTransform.hh" 0013 0014 #include "SurfaceTypeTraits.hh" 0015 0016 #include "detail/AllSurfaces.hh" 0017 0018 namespace celeritas 0019 { 0020 //---------------------------------------------------------------------------// 0021 //! std::variant class of all surfaces. 0022 using VariantSurface = EnumVariant<SurfaceType, SurfaceTypeTraits>; 0023 0024 //---------------------------------------------------------------------------// 0025 // Apply a variant "daughter-to-parent" transform to a surface 0026 [[nodiscard]] VariantSurface apply_transform(VariantTransform const& transform, 0027 VariantSurface const& surface); 0028 0029 //---------------------------------------------------------------------------// 0030 } // namespace celeritas
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|