ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceComps
src
MemoryResourceSvcAdaptorTool.h
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
//
4
#ifndef ATHDEVICECOMPS_MEMORYRESOURCESVCADAPTORTOOL_H
5
#define ATHDEVICECOMPS_MEMORYRESOURCESVCADAPTORTOOL_H
6
7
// Framework include(s).
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ServiceHandle.h"
10
11
// AthDevice include(s).
12
#include "
AthDeviceInterfaces/IMemoryResourceSvc.h
"
13
#include "
AthDeviceInterfaces/IMemoryResourceTool.h
"
14
15
namespace
AthDevice
{
16
25
class
MemoryResourceSvcAdaptorTool
26
:
public
extends<AthAlgTool, IMemoryResourceTool> {
27
28
public
:
29
// Inherit the base class's constructor(s).
30
using
extends::extends;
31
34
36
virtual
StatusCode
initialize
()
override
;
37
39
42
44
virtual
std::pmr::memory_resource&
mr
()
const override
;
45
47
48
private
:
50
ServiceHandle<IMemoryResourceSvc>
m_mrSvc
{
51
this
,
"MRSvc"
,
""
,
"Service providing the 'adapted' memory resource"
};
52
53
};
// class MemoryResourceSvcAdaptorTool
54
55
}
// namespace AthDevice
56
57
#endif
// ATHDEVICECOMPS_MEMORYRESOURCESVCADAPTORTOOL_H
AthAlgTool.h
IMemoryResourceSvc.h
IMemoryResourceTool.h
AthDevice::MemoryResourceSvcAdaptorTool
Tool exposing a memory resource service as a memory resource tool.
Definition
MemoryResourceSvcAdaptorTool.h:26
AthDevice::MemoryResourceSvcAdaptorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
MemoryResourceSvcAdaptorTool.cxx:13
AthDevice::MemoryResourceSvcAdaptorTool::mr
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.
Definition
MemoryResourceSvcAdaptorTool.cxx:22
AthDevice::MemoryResourceSvcAdaptorTool::m_mrSvc
ServiceHandle< IMemoryResourceSvc > m_mrSvc
Handle to the service providing the underlying memory resource.
Definition
MemoryResourceSvcAdaptorTool.h:50
ServiceHandle
Definition
ClusterMakerTool.h:36
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.16.1