ATLAS Offline Software
Loading...
Searching...
No Matches
AthDevice/AthDeviceComps/src/HostMemoryResourceTool.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_HOSTMEMORYRESOURCETOOL_H
5#define ATHDEVICECOMPS_HOSTMEMORYRESOURCETOOL_H
6
7// Framework include(s).
9
10// AthDevice include(s).
12
13namespace AthDevice {
14
19class HostMemoryResourceTool : public extends<AthAlgTool, IMemoryResourceTool> {
20
21 public:
22 // Inherit the base class's constructor(s).
23 using extends::extends;
24
27
29 virtual std::pmr::memory_resource& mr() const override;
30
32 virtual std::string_view deviceName() const override;
33
35
36}; // class HostMemoryResourceTool
37
38} // namespace AthDevice
39
40#endif // ATHDEVICECOMPS_HOSTMEMORYRESOURCETOOL_H
Tool providing a basic, host-side memory resource.
virtual std::string_view deviceName() const override
The name of the device for which the memory resource is provided.
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.