Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:54:10

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 corecel/sys/ThreadId.hh
0006 //! \todo Rename to corecel/Id.hh
0007 //---------------------------------------------------------------------------//
0008 #pragma once
0009 
0010 #include "corecel/OpaqueId.hh"
0011 
0012 namespace celeritas
0013 {
0014 //---------------------------------------------------------------------------//
0015 //! Unique ID for multithreading/multitasking
0016 using StreamId = OpaqueId<class Stream_>;
0017 
0018 //! Index of a thread inside the current kernel
0019 using ThreadId = OpaqueId<struct Thread_>;
0020 
0021 //! Index of a state inside the vector of all states
0022 using TrackSlotId = OpaqueId<struct TrackSlot_>;
0023 
0024 //! Within-step action to apply to a track
0025 using ActionId = OpaqueId<class ActionInterface>;
0026 
0027 //---------------------------------------------------------------------------//
0028 }  // namespace celeritas