The Gaudi Framework
master (d98a2936)
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>
14
struct
extend_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>
33
using
extend_interfaces1
=
extend_interfaces<I1>
;
34
template
<
typename
I1,
typename
I2>
35
using
extend_interfaces2
=
extend_interfaces<I1, I2>
;
36
template
<
typename
I1,
typename
I2,
typename
I3>
37
using
extend_interfaces3
=
extend_interfaces<I1, I2, I3>
;
38
template
<
typename
I1,
typename
I2,
typename
I3,
typename
I4>
39
using
extend_interfaces4
=
extend_interfaces<I1, I2, I3, 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
GaudiKernel
include
GaudiKernel
extend_interfaces.h
Generated on Wed Aug 13 2025 09:05:03 for The Gaudi Framework by
1.8.18