The Gaudi Framework
master (82fdf313)
Loading...
Searching...
No Matches
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>
;
IInterface.h
GAUDI_API
#define GAUDI_API
Definition
Kernel.h:49
IInterface::interfaceID
static const InterfaceID & interfaceID()
Return an instance of InterfaceID identifying the interface.
Definition
IInterface.h:234
InterfaceID
Interface ID class.
Definition
IInterface.h:38
extend_interfaces3
extend_interfaces< I1, I2, I3 > extend_interfaces3
Definition
extend_interfaces.h:37
extend_interfaces4
extend_interfaces< I1, I2, I3, I4 > extend_interfaces4
Definition
extend_interfaces.h:39
extend_interfaces1
extend_interfaces< I1 > extend_interfaces1
Definition
extend_interfaces.h:33
extend_interfaces2
extend_interfaces< I1, I2 > extend_interfaces2
Definition
extend_interfaces.h:35
Gaudi::interface_list_cat
Definition
IInterface.h:133
extend_interfaces
Base class to be used to extend an interface.
Definition
extend_interfaces.h:23
extend_interfaces::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
GaudiKernel
include
GaudiKernel
extend_interfaces.h
Generated on Thu Oct 2 2025 15:31:11 for The Gaudi Framework by
1.13.1