ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceComps
src
DebugMemoryResourceTool.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_DEBUGMEMORYRESOURCETOOL_H
5
#define ATHDEVICECOMPS_DEBUGMEMORYRESOURCETOOL_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
14
namespace
AthDevice
{
15
20
class
DebugMemoryResourceTool
21
:
public
extends<AthAlgTool, AthDevice::IMemoryResourceTool> {
22
23
public
:
24
// Inherit the base class's constructor(s).
25
using
extends::extends;
26
29
31
virtual
StatusCode
initialize
()
override
;
32
34
37
39
virtual
std::pmr::memory_resource&
mr
()
const override
;
40
42
43
private
:
45
std::unique_ptr<std::pmr::memory_resource>
m_mr
;
46
49
51
ToolHandle<IMemoryResourceTool>
m_mrTool
{
52
this
,
"MRTool"
,
""
,
"Memory resource tool to use for allocations"
};
53
55
56
};
// class DebugMemoryResourceTool
57
58
}
// namespace AthDevice
59
60
#endif
// ATHDEVICECOMPS_DEBUGMEMORYRESOURCETOOL_H
AthAlgTool.h
IMemoryResourceTool.h
AthDevice::DebugMemoryResourceTool
Tool providing debugging functionality for memory resources.
Definition
DebugMemoryResourceTool.h:21
AthDevice::DebugMemoryResourceTool::initialize
virtual StatusCode initialize() override
Initialize the tool.
Definition
DebugMemoryResourceTool.cxx:13
AthDevice::DebugMemoryResourceTool::mr
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.
Definition
DebugMemoryResourceTool.cxx:25
AthDevice::DebugMemoryResourceTool::m_mr
std::unique_ptr< std::pmr::memory_resource > m_mr
The memory resource that this tool uses.
Definition
DebugMemoryResourceTool.h:45
AthDevice::DebugMemoryResourceTool::m_mrTool
ToolHandle< IMemoryResourceTool > m_mrTool
Underlying memory resource to use for allocations.
Definition
DebugMemoryResourceTool.h:51
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0