ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceComps
src
MemoryResourcesAdaptorTool.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_MEMORYRESOURCESADAPTORTOOL_H
5
#define ATHDEVICECOMPS_MEMORYRESOURCESADAPTORTOOL_H
6
7
// Framework include(s).
8
#include "
AthenaBaseComps/AthAlgTool.h
"
9
#include "GaudiKernel/ToolHandle.h"
10
11
// AthDevice include(s).
12
#include "
AthDeviceInterfaces/IMemoryResourceTool.h
"
13
#include "
AthDeviceInterfaces/IMemoryResourcesTool.h
"
14
15
namespace
AthDevice
{
16
23
class
MemoryResourcesAdaptorTool
24
:
public
extends<AthAlgTool, IMemoryResourcesTool> {
25
26
public
:
27
// Inherit the base class's constructor(s).
28
using
extends::extends;
29
32
34
virtual
StatusCode
initialize
()
override
;
35
37
40
42
virtual
std::pmr::memory_resource&
mainMR
()
const override
;
43
45
virtual
std::pmr::memory_resource*
hostMR
()
const override
;
46
48
49
private
:
51
ToolHandle<IMemoryResourceTool>
m_mainMRTool
{
52
this
,
"MainMRTool"
,
""
,
53
"Tool providing the 'main' / 'device' memory resource"
};
54
55
ToolHandle<IMemoryResourceTool>
m_hostMRTool
{
56
this
,
"HostMRTool"
,
""
,
57
"Tool providing the 'host' (accessible) memory resource"
};
58
59
};
// class MemoryResourcesAdaptorTool
60
61
}
// namespace AthDevice
62
63
#endif
// ATHDEVICECOMPS_MEMORYRESOURCESADAPTORTOOL_H
AthAlgTool.h
IMemoryResourceTool.h
IMemoryResourcesTool.h
AthDevice::MemoryResourcesAdaptorTool
Tool implementing AthDevice::IMemoryResourcesTool using two tools.
Definition
MemoryResourcesAdaptorTool.h:24
AthDevice::MemoryResourcesAdaptorTool::m_mainMRTool
ToolHandle< IMemoryResourceTool > m_mainMRTool
Handle to the "main" / "device" memory resource tool.
Definition
MemoryResourcesAdaptorTool.h:51
AthDevice::MemoryResourcesAdaptorTool::m_hostMRTool
ToolHandle< IMemoryResourceTool > m_hostMRTool
Handle to the "host" (accessible) memory resource tool.
Definition
MemoryResourcesAdaptorTool.h:55
AthDevice::MemoryResourcesAdaptorTool::hostMR
virtual std::pmr::memory_resource * hostMR() const override
Get the "host" (accessible) std::pmr::memory_resource object.
Definition
MemoryResourcesAdaptorTool.cxx:26
AthDevice::MemoryResourcesAdaptorTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
MemoryResourcesAdaptorTool.cxx:10
AthDevice::MemoryResourcesAdaptorTool::mainMR
virtual std::pmr::memory_resource & mainMR() const override
Get the "main" / "device" std::pmr::memory_resource object.
Definition
MemoryResourcesAdaptorTool.cxx:21
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0