ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
Control
AthDevice
AthDeviceInterfaces
AthDeviceInterfaces
IMemoryResourceProvider.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_IMEMORYRESOURCEPROVIDER_H
5
#define ATHDEVICEINTERFACES_IMEMORYRESOURCEPROVIDER_H
6
7
// System include(s).
8
#include <memory_resource>
9
#include <string_view>
10
11
namespace
AthDevice
{
12
14
class
IMemoryResourceProvider
{
15
16
public
:
18
virtual
~IMemoryResourceProvider
() =
default
;
19
21
virtual
std::pmr::memory_resource&
mr
()
const
= 0;
22
24
virtual
std::string_view
deviceName
()
const
= 0;
25
26
};
// class IMemoryResourceProvider
27
28
}
// namespace AthDevice
29
30
#endif
// ATHDEVICEINTERFACES_IMEMORYRESOURCEPROVIDER_H
AthDevice::IMemoryResourceProvider
Interface for a component that provides a "memory resource".
Definition
IMemoryResourceProvider.h:14
AthDevice::IMemoryResourceProvider::mr
virtual std::pmr::memory_resource & mr() const =0
Get the provided std::pmr::memory_resource object.
AthDevice::IMemoryResourceProvider::~IMemoryResourceProvider
virtual ~IMemoryResourceProvider()=default
Destructor.
AthDevice::IMemoryResourceProvider::deviceName
virtual std::string_view deviceName() const =0
The name of the device for which the memory resource is provided.
AthDevice
Definition
BinaryPageMemoryResourceSvc.cxx:15
Generated on
for ATLAS Offline Software by
1.17.0