Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-05-11 08:57:27

0001 /*
0002  * Copyright (c) 2014-2024 Key4hep-Project.
0003  *
0004  * This file is part of Key4hep.
0005  * See https://key4hep.github.io/key4hep-doc/ for further info.
0006  *
0007  * Licensed under the Apache License, Version 2.0 (the "License");
0008  * you may not use this file except in compliance with the License.
0009  * You may obtain a copy of the License at
0010  *
0011  *     http://www.apache.org/licenses/LICENSE-2.0
0012  *
0013  * Unless required by applicable law or agreed to in writing, software
0014  * distributed under the License is distributed on an "AS IS" BASIS,
0015  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
0016  * See the License for the specific language governing permissions and
0017  * limitations under the License.
0018  */
0019 #ifndef FWCORE_PRODUCER_H
0020 #define FWCORE_PRODUCER_H
0021 
0022 #include "k4FWCore/Transformer.h"
0023 
0024 #include <tuple>
0025 
0026 namespace k4FWCore {
0027 
0028   namespace details {
0029 
0030     template <typename Signature, typename Traits_> struct Producer;
0031 
0032     template <typename... Out, typename Traits_>
0033     struct Producer<std::tuple<Out...>(), Traits_> : MultiTransformer<std::tuple<Out...>(), Traits_> {
0034       using MultiTransformer<std::tuple<Out...>(), Traits_>::MultiTransformer;
0035     };
0036 
0037     template <typename Out, typename Traits_> struct Producer<Out(), Traits_> : Transformer<Out(), Traits_> {
0038       using Transformer<Out(), Traits_>::Transformer;
0039     };
0040 
0041   }  // namespace details
0042 
0043   template <typename Signature, typename Traits_ = Gaudi::Functional::Traits::useDefaults>
0044   using Producer = details::Producer<Signature, Traits_>;
0045 
0046 }  // namespace k4FWCore
0047 
0048 #endif  // FWCORE_PRODUCER_H