ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceInterfaces
AthDeviceInterfaces
IMemoryResourcesTool.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 ATHDEVICEINTERFACES_IMEMORYRESOURCESTOOL_H
5
#define ATHDEVICEINTERFACES_IMEMORYRESOURCESTOOL_H
6
7
// Framework include(s).
8
#include "GaudiKernel/IAlgTool.h"
9
10
// System include(s).
11
#include <memory_resource>
12
13
namespace
AthDevice
{
14
29
class
IMemoryResourcesTool
:
virtual
public
IAlgTool {
30
31
public
:
33
DeclareInterfaceID
(
IMemoryResourcesTool
, 1, 0);
34
36
virtual
~IMemoryResourcesTool
() =
default
;
37
39
virtual
std::pmr::memory_resource&
mainMR
()
const
= 0;
40
42
virtual
std::pmr::memory_resource*
hostMR
()
const
= 0;
43
44
};
// class IMemoryResourcesTool
45
46
}
// namespace AthDevice
47
48
#endif
// ATHDEVICEINTERFACES_IMEMORYRESOURCESTOOL_H
AthDevice::IMemoryResourcesTool
Interface for a tool that provides a main/device and a host memory resource.
Definition
IMemoryResourcesTool.h:29
AthDevice::IMemoryResourcesTool::mainMR
virtual std::pmr::memory_resource & mainMR() const =0
Get the "main" / "device" std::pmr::memory_resource object.
AthDevice::IMemoryResourcesTool::~IMemoryResourcesTool
virtual ~IMemoryResourcesTool()=default
Destructor.
AthDevice::IMemoryResourcesTool::DeclareInterfaceID
DeclareInterfaceID(IMemoryResourcesTool, 1, 0)
Declare the interface that the tool will implement.
AthDevice::IMemoryResourcesTool::hostMR
virtual std::pmr::memory_resource * hostMR() const =0
Get the "host" (accessible) std::pmr::memory_resource object.
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0