ATLAS Offline Software
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceComps
src
MemoryResourceSvcAdaptorTool.cxx
Go to the documentation of this file.
1
//
2
// Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
//
4
5
// Local include(s).
6
#include "
MemoryResourceSvcAdaptorTool.h
"
7
8
// System include(s).
9
#include <cassert>
10
11
namespace
AthDevice
{
12
13
StatusCode
MemoryResourceSvcAdaptorTool::initialize
() {
14
15
// Retrieve the "wrapped" service.
16
ATH_CHECK
(
m_mrSvc
.retrieve());
17
18
// Return gracefully.
19
return
StatusCode::SUCCESS;
20
}
21
22
std::pmr::memory_resource&
MemoryResourceSvcAdaptorTool::mr
()
const
{
23
24
// Just return the memory resource provided by the service.
25
assert(
m_mrSvc
.isValid());
26
return
m_mrSvc
->mr();
27
}
28
29
}
// namespace AthDevice
ATH_CHECK
#define ATH_CHECK
Evaluate an expression and check for errors.
Definition
AthCheckMacros.h:40
MemoryResourceSvcAdaptorTool.h
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
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.16.1