Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
extend_interfaces.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 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 #pragma once
12 
13 template <typename... Interfaces>
15 
16 #include <GaudiKernel/IInterface.h>
17 
18 // -----------------------------------------------------------------------------
19 // Interface extension classes
20 // -----------------------------------------------------------------------------
22 template <typename... Interfaces>
23 struct GAUDI_API extend_interfaces : virtual public Interfaces... {
25  using ext_iids = typename Gaudi::interface_list_cat<typename Interfaces::ext_iids...>::type;
26 
27 private:
28  // hide interfaceID from the interfaces we inherit from to avoid that it leaks in concrete implementations
29  static inline const InterfaceID& interfaceID() { return IInterface::interfaceID(); }
30 };
31 
32 template <typename I1>
34 template <typename I1, typename I2>
36 template <typename I1, typename I2, typename I3>
38 template <typename I1, typename I2, typename I3, typename I4>
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:25
extend_interfaces::interfaceID
static const InterfaceID & interfaceID()
Definition: extend_interfaces.h:29
Gaudi::interface_list_cat
Definition: IInterface.h:133
extend_interfaces
Base class to be used to extend an interface.
Definition: extend_interfaces.h:14
IInterface.h
IInterface::interfaceID
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
Definition: IInterface.h:234
gaudirun.type
type
Definition: gaudirun.py:160
InterfaceID
Definition: IInterface.h:38
GAUDI_API
#define GAUDI_API
Definition: Kernel.h:49