The Gaudi Framework  master (37c0b60a)
extend_interfaces.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2024 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #ifndef GAUDIKERNEL_EXTEND_INTERFACES_H
12 #define GAUDIKERNEL_EXTEND_INTERFACES_H
13 
14 template <typename... Interfaces>
16 
17 #include <GaudiKernel/IInterface.h>
18 
19 // -----------------------------------------------------------------------------
20 // Interface extension classes
21 // -----------------------------------------------------------------------------
23 template <typename... Interfaces>
24 struct GAUDI_API extend_interfaces : virtual public Interfaces... {
26  using ext_iids = typename Gaudi::interface_list_cat<typename Interfaces::ext_iids...>::type;
27 };
28 
29 template <typename I1>
31 template <typename I1, typename I2>
33 template <typename I1, typename I2, typename I3>
35 template <typename I1, typename I2, typename I3, typename I4>
37 
38 #endif
extend_interfaces< IService, IChronoSvc, IStatSvc >::ext_iids
typename Gaudi::interface_list_cat< typename Interfaces::ext_iids... >::type ext_iids
take union of the ext_iids of all Interfaces...
Definition: extend_interfaces.h:26
Gaudi::interface_list_cat
Definition: IInterface.h:147
extend_interfaces
Base class to be used to extend an interface.
Definition: extend_interfaces.h:15
IInterface.h
gaudirun.type
type
Definition: gaudirun.py:160
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:81