ATLAS Offline Software
Loading...
Searching...
No Matches
MemoryResourceSvcAdaptorTool.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_MEMORYRESOURCESVCADAPTORTOOL_H
5#define ATHDEVICECOMPS_MEMORYRESOURCESVCADAPTORTOOL_H
6
7// Framework include(s).
9#include "GaudiKernel/ServiceHandle.h"
10
11// AthDevice include(s).
14
15namespace AthDevice {
16
26 : public extends<AthAlgTool, IMemoryResourceTool> {
27
28 public:
29 // Inherit the base class's constructor(s).
30 using extends::extends;
31
34
36 virtual StatusCode initialize() override;
37
39
42
44 virtual std::pmr::memory_resource& mr() const override;
45
47
48 private:
51 this, "MRSvc", "", "Service providing the 'adapted' memory resource"};
52
53}; // class MemoryResourceSvcAdaptorTool
54
55} // namespace AthDevice
56
57#endif // ATHDEVICECOMPS_MEMORYRESOURCESVCADAPTORTOOL_H
Tool exposing a memory resource service as a memory resource tool.
virtual StatusCode initialize() override
Initialize the tool.
virtual std::pmr::memory_resource & mr() const override
Get the provided std::pmr::memory_resource object.
ServiceHandle< IMemoryResourceSvc > m_mrSvc
Handle to the service providing the underlying memory resource.