Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-26 08:22:04

0001 /**
0002  * traccc library, part of the ACTS project (R&D line)
0003  *
0004  * (c) 2025 CERN for the benefit of the ACTS project
0005  *
0006  * Mozilla Public License Version 2.0
0007  */
0008 
0009 // Local include(s).
0010 #include "get_queue.hpp"
0011 
0012 // System include(s).
0013 #include <cassert>
0014 
0015 namespace traccc::alpaka::details {
0016 
0017 Queue& get_queue(queue& q) {
0018   assert(q.alpakaQueue() != nullptr);
0019   return *(reinterpret_cast<Queue*>(q.alpakaQueue()));
0020 }
0021 
0022 const Queue& get_queue(const queue& q) {
0023   assert(q.alpakaQueue() != nullptr);
0024   return *(reinterpret_cast<const Queue*>(q.alpakaQueue()));
0025 }
0026 
0027 }  // namespace traccc::alpaka::details