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>
15
struct
extend_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>
30
using
extend_interfaces1
=
extend_interfaces<I1>
;
31
template
<
typename
I1,
typename
I2>
32
using
extend_interfaces2
=
extend_interfaces<I1, I2>
;
33
template
<
typename
I1,
typename
I2,
typename
I3>
34
using
extend_interfaces3
=
extend_interfaces<I1, I2, I3>
;
35
template
<
typename
I1,
typename
I2,
typename
I3,
typename
I4>
36
using
extend_interfaces4
=
extend_interfaces<I1, I2, I3, 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
GaudiKernel
include
GaudiKernel
extend_interfaces.h
Generated on Thu Dec 19 2024 15:35:01 for The Gaudi Framework by
1.8.18