![]() |
|
|||
File indexing completed on 2025-02-22 10:31:23
0001 //----------------------------------*-C++-*----------------------------------// 0002 // Copyright 2021-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 celeritas/grid/ValueGridType.hh 0007 //---------------------------------------------------------------------------// 0008 #pragma once 0009 0010 #include "corecel/Types.hh" 0011 #include "corecel/cont/EnumArray.hh" 0012 0013 namespace celeritas 0014 { 0015 //---------------------------------------------------------------------------// 0016 //! Hardcoded types of grid data 0017 enum class ValueGridType 0018 { 0019 macro_xs, //!< Interaction cross sections 0020 energy_loss, //!< Energy loss per unit length 0021 range, //!< Particle range 0022 size_ 0023 }; 0024 0025 template<class T> 0026 using ValueGridArray = EnumArray<ValueGridType, T>; 0027 0028 // Get the string representation of a grid 0029 char const* to_cstring(ValueGridType grid); 0030 0031 //---------------------------------------------------------------------------// 0032 } // 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 |
![]() ![]() |